Skip to content
Snippets Groups Projects
Commit 5eb0b07e authored by CismonX's avatar CismonX Committed by Paul Moore
Browse files

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: default avatarCheng Qiao <admin@cismon.net>
Acked-by: default avatarTom Hromatka <tom.hromatka@oracle.com>
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent c92d618c
No related branches found
No related tags found
No related merge requests found
......@@ -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__))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment