From: Vincent Mailhol Date: Fri, 22 Apr 2022 15:17:25 +0000 (+0900) Subject: checksyscalls: ignore -Wunused-macros X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f4d40868fc4dcfd5db4999149b13fea3902c8883;p=linux.git checksyscalls: ignore -Wunused-macros The macros defined in this file are for testing only and are purposely not used. When compiled with W=2, both gcc and clang yield some -Wunused-macros warnings. Ignore them. Signed-off-by: Vincent Mailhol Signed-off-by: Masahiro Yamada --- diff --git a/scripts/checksyscalls.sh b/scripts/checksyscalls.sh index 9dbab13329fa9..f33e61aca93d3 100755 --- a/scripts/checksyscalls.sh +++ b/scripts/checksyscalls.sh @@ -268,4 +268,4 @@ syscall_list() { } (ignore_list && syscall_list $(dirname $0)/../arch/x86/entry/syscalls/syscall_32.tbl) | \ -$* -Wno-error -E -x c - > /dev/null +$* -Wno-error -Wno-unused-macros -E -x c - > /dev/null