mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-17 16:47:50 +00:00
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:
parent
6673c9a172
commit
39040f44e3
2 changed files with 2 additions and 2 deletions
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue