From 9d5b333fb6e548aa2a9cda9094ad7e96e3eb33f7 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Mon, 20 Nov 2023 17:21:48 +0100 Subject: src|tests: Address warning -Wstrict-prototypes 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] --- tests/test_dir_rewind.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test_dir_rewind.c') diff --git a/tests/test_dir_rewind.c b/tests/test_dir_rewind.c index 6ae0497..d2d9d2a 100644 --- a/tests/test_dir_rewind.c +++ b/tests/test_dir_rewind.c @@ -17,7 +17,7 @@ #define BUF_SIZE 4096 -int main() +int main(void) { int fd = open(".", O_RDONLY | O_DIRECTORY); if (fd == -1) { @@ -72,7 +72,7 @@ int main() #include -int main() +int main(void) { printf("This test currently only compiles on Linux/amd64.\n"); printf("Skipping by just returning successfully.\n"); -- cgit v1.2.3