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:
parent
34086d5bda
commit
7a9cfa086a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user