From 39040f44e3b868fa37a618a44bc6d1d3f5ea86be Mon Sep 17 00:00:00 2001 From: Adrian Reber Date: Thu, 11 Jun 2026 07:46:36 +0000 Subject: [PATCH] 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 --- test/others/libcriu/lib.c | 2 +- test/others/libcriu/lib.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/others/libcriu/lib.c b/test/others/libcriu/lib.c index 0c7929cda..2ef81e1a6 100644 --- a/test/others/libcriu/lib.c +++ b/test/others/libcriu/lib.c @@ -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()); } diff --git a/test/others/libcriu/lib.h b/test/others/libcriu/lib.h index 59372fca5..d03836296 100644 --- a/test/others/libcriu/lib.h +++ b/test/others/libcriu/lib.h @@ -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