aboutsummaryrefslogtreecommitdiffstats
path: root/tests/odirect_write.c
AgeCommit message (Collapse)AuthorLines
2023-11-20odirect_write.c: Resolve unused variable "total_size"Sebastian Pipping-3/+0
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; > | ^
2023-11-20src|tests: Address warning -Wstrict-prototypesSebastian Pipping-1/+1
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]
2023-11-14odirect_write.c: Address warning -Wsign-compareSebastian Pipping-1/+1
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) { > | ^~
2021-05-04Cleanups.Martin Pärtel-1/+1
2019-04-28Cleanups, tests and optimizations for #74.Martin Pärtel-0/+78