Date: Tue, 17 Mar 2020 23:22:07 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r359054 - head/lib/libsysdecode Message-ID: <202003172322.02HNM7MH022210@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202003172322.02HNM7MH022210>