svn commit: r359054 - head/lib/libsysdecode

John Baldwin jhb at FreeBSD.org
Tue Mar 17 23:22:08 UTC 2020


Author: jhb
Date: Tue Mar 17 23:22:07 2020
New Revision: 359054
URL: https://svnweb.freebsd.org/changeset/base/359054

Log:
  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

Modified:
  head/lib/libsysdecode/Makefile

Modified: head/lib/libsysdecode/Makefile
==============================================================================
--- head/lib/libsysdecode/Makefile	Tue Mar 17 22:27:16 2020	(r359053)
+++ head/lib/libsysdecode/Makefile	Tue Mar 17 23:22:07 2020	(r359054)
@@ -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


More information about the svn-src-head mailing list