aboutsummaryrefslogtreecommitdiffstats
path: root/tests/internals/test_common.c
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2023-11-20 17:21:48 +0100
committerSebastian Pipping <sebastian@pipping.org>2023-11-20 18:36:08 +0100
commit9d5b333fb6e548aa2a9cda9094ad7e96e3eb33f7 (patch)
tree014d5a8d1de974ee2e07b9db67477df8d3a0adfb /tests/internals/test_common.c
parent9cc4a6928da3931d0d7d6afad4489384cb21de23 (diff)
downloadbindfs-9d5b333fb6e548aa2a9cda9094ad7e96e3eb33f7.tar.gz
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]
Diffstat (limited to 'tests/internals/test_common.c')
-rw-r--r--tests/internals/test_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/internals/test_common.c b/tests/internals/test_common.c
index 6c10292..449c64a 100644
--- a/tests/internals/test_common.c
+++ b/tests/internals/test_common.c
@@ -3,7 +3,7 @@
int failures = 0;
-int run_suite(void (*suite)()) {
+int run_suite(void (*suite)(void)) {
suite();
return (failures > 0) ? 1 : 0;
}