[CRIU] [PATCH] zdtm/ptrace_sic: set types for function arguments
Andrew Vagin
avagin at openvz.org
Tue Jun 2 04:18:30 PDT 2015
I've updated Mr Jenkins to fc22 and can't compile zdtm tests:
cc -g -O2 -Wall -Werror -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -iquote ../../lib/arch/x86/include -I../../lib ptrace_sig.c ../../lib/libzdtmtst.a -o ptrace_sig
ptrace_sig.c: In function ‘child’:
ptrace_sig.c:33:5: error: type of ‘fd’ defaults to ‘int’ [-Werror=implicit-int]
int child(fd)
Reported-by: Mr Jenkins
Signed-off-by: Andrew Vagin <avagin at openvz.org>
---
test/zdtm/live/static/ptrace_sig.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/zdtm/live/static/ptrace_sig.c b/test/zdtm/live/static/ptrace_sig.c
index 83dbf02..0058e46 100644
--- a/test/zdtm/live/static/ptrace_sig.c
+++ b/test/zdtm/live/static/ptrace_sig.c
@@ -30,7 +30,7 @@ void sig_chld_handler(int signo)
test_msg("Receive signal %d\n", signo);
}
-int child(fd)
+int child(int fd)
{
int ret = 0;
struct sigaction act = {
--
2.4.2
More information about the CRIU
mailing list