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
This commit is contained in:
John Baldwin 2020-03-17 23:22:07 +00:00
parent 34086d5bda
commit 7a9cfa086a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=359054

View File

@ -119,10 +119,12 @@ CFLAGS+=-DPF
# Workaround duplicate declarations in <netinet/ip_compat.h>
CFLAGS.gcc.ioctl.c+= -Wno-redundant-decls
CFLAGS.gcc+= ${CFLAGS.gcc.${.IMPSRC}}
# Ignore deprecation warning in <sys/pioctl.h>
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