Module Name: src
Committed By: martin
Date: Tue Feb 6 12:58:17 UTC 2018
Modified Files:
src/sys/modules/pf: Makefile
Log Message:
Avoid gcc 6 specific options when compiling with gcc 5
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/modules/pf/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/modules/pf/Makefile
diff -u src/sys/modules/pf/Makefile:1.5 src/sys/modules/pf/Makefile:1.6
--- src/sys/modules/pf/Makefile:1.5 Tue Feb 6 09:20:50 2018
+++ src/sys/modules/pf/Makefile Tue Feb 6 12:58:17 2018
@@ -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 @@ SRCS+= tcp_rndiss.c
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>