Age | Commit message (Collapse) | Author | Lines |
|
Symptom with Clang 17:
> tests/odirect_write.c:35:12: warning: variable 'total_size' set but not used [-Wunused-but-set-variable]
> 35 | size_t total_size = 0;
> | ^
|
|
Symptom with Clang 15:
> In file included from userinfo.c:20:
> ./userinfo.h:38:27: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
> void invalidate_user_cache(); /* safe to call from signal handler */
> ^
> void
> [many more]
|
|
Symptom was:
> tests/odirect_write.c: In function ‘main’:
> tests/odirect_write.c:58:17: error: comparison of integer expressions of different signedness: ‘ssize_t’ {aka ‘long int’} and ‘size_t’ {aka ‘long unsigned int’} [-Werror=sign-compare]
> 58 | if (res != buf_size) {
> | ^~
|
|
|
|
|