From 7a9cfa086a2a3176616f3af3297beb9f49ceb550 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Tue, 17 Mar 2020 23:22:07 +0000 Subject: [PATCH] Fix the workaround to ignore the #warning for GCC. clang and gcc use different warning flags for #warning preprocessor directives. Reported by: Jenkins MFC after: 1 week --- lib/libsysdecode/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/libsysdecode/Makefile b/lib/libsysdecode/Makefile index 60702b613b7c..b13c0f5770d5 100644 --- a/lib/libsysdecode/Makefile +++ b/lib/libsysdecode/Makefile @@ -119,10 +119,12 @@ CFLAGS+=-DPF # Workaround duplicate declarations in CFLAGS.gcc.ioctl.c+= -Wno-redundant-decls -CFLAGS.gcc+= ${CFLAGS.gcc.${.IMPSRC}} - # Ignore deprecation warning in -CFLAGS.ioctl.c+= -Wno-\#warnings +CFLAGS.clang.ioctl.c+= -Wno-\#warnings +CFLAGS.gcc.ioctl.c+= -Wno-cpp + +CFLAGS.clang+= ${CFLAGS.clang.${.IMPSRC}} +CFLAGS.gcc+= ${CFLAGS.gcc.${.IMPSRC}} DEPENDOBJS+= tables.h tables.h: mktables