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/odirect_write.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/odirect_write.c') diff --git a/tests/odirect_write.c b/tests/odirect_write.c index bc9040f..626ff5c 100644 --- a/tests/odirect_write.c +++ b/tests/odirect_write.c @@ -70,7 +70,7 @@ int main(int argc, char** argv) { #include -int main() { +int main(void) { fprintf(stderr, "Not supported on this platform.\n"); return 1; } -- cgit v1.2.3