From 5eb0b07eb0a41a4d886fb921ee97a470a19dda3a Mon Sep 17 00:00:00 2001 From: CismonX Date: Fri, 7 Jun 2024 18:59:39 +0800 Subject: [PATCH] all: fix ISO C compliance In ISO C, at least one argument should be specified for the "..." argument of a function-like macro. Signed-off-by: Cheng Qiao Acked-by: Tom Hromatka Signed-off-by: Paul Moore --- include/seccomp.h.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/seccomp.h.in b/include/seccomp.h.in index e2d7c0e9..f81ffe7c 100644 --- a/include/seccomp.h.in +++ b/include/seccomp.h.in @@ -248,7 +248,7 @@ struct scmp_arg_cmp { #define SCMP_SYS(x) (__SNR_##x) /* Helpers for the argument comparison macros, DO NOT USE directly */ -#define _SCMP_VA_NUM_ARGS(...) _SCMP_VA_NUM_ARGS_IMPL(__VA_ARGS__,2,1) +#define _SCMP_VA_NUM_ARGS(...) _SCMP_VA_NUM_ARGS_IMPL(__VA_ARGS__,2,1,0) #define _SCMP_VA_NUM_ARGS_IMPL(_1,_2,N,...) N #define _SCMP_MACRO_DISPATCHER(func, ...) \ _SCMP_MACRO_DISPATCHER_IMPL1(func, _SCMP_VA_NUM_ARGS(__VA_ARGS__))