checksyscalls: ignore -Wunused-macros
authorVincent Mailhol <mailhol.vincent@wanadoo.fr>
Fri, 22 Apr 2022 15:17:25 +0000 (00:17 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 7 May 2022 18:16:59 +0000 (03:16 +0900)
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 <mailhol.vincent@wanadoo.fr>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/checksyscalls.sh

index 9dbab13329fa986f0a2d6e955b8b5e1c105634f3..f33e61aca93d34ee4cc05b1266f7449ff71fc213 100755 (executable)
@@ -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