Skip to content

Commit

Permalink
all: fix ISO C compliance
Browse files Browse the repository at this point in the history
In ISO C, at least one argument should be specified for
the "..." argument of a function-like macro.

Signed-off-by: Cheng Qiao <admin@cismon.net>
Acked-by: Tom Hromatka <tom.hromatka@oracle.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
  • Loading branch information
CismonX authored and pcmoore committed Sep 5, 2024
1 parent c92d618 commit 5eb0b07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/seccomp.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -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__))
Expand Down

0 comments on commit 5eb0b07

Please sign in to comment.