test: fix compilation with clang

make[1]: Leaving directory '/criu'
clang -c test_sub.c -I/criu/test/others/libcriu/.install/include/criu -o test_sub.o -Werror
clang -c lib.c -I/criu/test/others/libcriu/.install/include/criu -o lib.o -Werror
lib.c:52:1: error: non-void function does not return a value [-Werror,-Wreturn-type]
   52 | }
      | ^
1 error generated.
make: *** [Makefile:48: lib.o] Error 1
make: Leaving directory '/criu/test/others/libcriu'

Signed-off-by: Adrian Reber <areber@redhat.com>
This commit is contained in:
Adrian Reber 2026-06-11 07:46:36 +00:00 committed by Radostin Stoyanov
parent 6673c9a172
commit 39040f44e3
2 changed files with 2 additions and 2 deletions

View file

@ -46,7 +46,7 @@ int chk_exit(int status, int want)
return 1;
}
int get_version()
void get_version(void)
{
printf("Using a CRIU binary with version %d\n", criu_get_version());
}

View file

@ -1,5 +1,5 @@
void what_err_ret_mean(int ret);
int chk_exit(int status, int want);
int get_version(void);
void get_version(void);
#define SUCC_ECODE 42