Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/modules/pf Avoid gcc 6 specific options when compiling w...



details:   https://anonhg.NetBSD.org/src/rev/60d74ca5824a
branches:  trunk
changeset: 829593:60d74ca5824a
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Feb 06 12:58:17 2018 +0000

description:
Avoid gcc 6 specific options when compiling with gcc 5

diffstat:

 sys/modules/pf/Makefile |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 5656abe7da62 -r 60d74ca5824a sys/modules/pf/Makefile
--- a/sys/modules/pf/Makefile   Tue Feb 06 12:45:39 2018 +0000
+++ b/sys/modules/pf/Makefile   Tue Feb 06 12:58:17 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2018/02/06 09:20:50 mrg Exp $
+# $NetBSD: Makefile,v 1.6 2018/02/06 12:58:17 martin Exp $
 
 .include "../Makefile.inc"
 
@@ -20,6 +20,8 @@
 
 CPPFLAGS+=     -I${S}/dist/pf -I${S} -DINET6 -DINET
 
+.if ${HAVE_GCC} != 5
 COPTS.pf_table.c+=     -Wno-error=shift-negative-value
+.endif
 
 .include <bsd.kmodule.mk>



Home | Main Index | Thread Index | Old Index