diff options
author | Sebastian Pipping <sebastian@pipping.org> | 2023-11-20 17:21:48 +0100 |
---|---|---|
committer | Sebastian Pipping <sebastian@pipping.org> | 2023-11-20 18:36:08 +0100 |
commit | 9d5b333fb6e548aa2a9cda9094ad7e96e3eb33f7 (patch) | |
tree | 014d5a8d1de974ee2e07b9db67477df8d3a0adfb /tests/test_dir_rewind.c | |
parent | 9cc4a6928da3931d0d7d6afad4489384cb21de23 (diff) | |
download | bindfs-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/test_dir_rewind.c')
-rw-r--r-- | tests/test_dir_rewind.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <stdio.h> -int main() +int main(void) { printf("This test currently only compiles on Linux/amd64.\n"); printf("Skipping by just returning successfully.\n"); |