summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsthen <sthen@openbsd.org>2012-08-20 20:44:26 +0000
committersthen <sthen@openbsd.org>2012-08-20 20:44:26 +0000
commita686f565b696fbf5ab256302598fbc4b5b8d71e0 (patch)
treee90624694a2ee7a55e2ed703c202c6d8b8fea7ba
parentrfc 4291 replaces rfcs 2373 and 3513; (diff)
downloadwireguard-openbsd-a686f565b696fbf5ab256302598fbc4b5b8d71e0.tar.xz
wireguard-openbsd-a686f565b696fbf5ab256302598fbc4b5b8d71e0.zip
add -Wdeclaration-after-statement to the default CDIAGFLAGS (used when
WARNINGS=yes is set) on gcc4 arch. ok haesbaert@ deraadt@.
-rw-r--r--share/mk/bsd.own.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/share/mk/bsd.own.mk b/share/mk/bsd.own.mk
index 57547fe1cfc..e3dfbb7e2be 100644
--- a/share/mk/bsd.own.mk
+++ b/share/mk/bsd.own.mk
@@ -1,4 +1,4 @@
-# $OpenBSD: bsd.own.mk,v 1.119 2012/08/17 17:09:43 haesbaert Exp $
+# $OpenBSD: bsd.own.mk,v 1.120 2012/08/20 20:44:26 sthen Exp $
# $NetBSD: bsd.own.mk,v 1.24 1996/04/13 02:08:09 thorpej Exp $
# Host-specific overrides
@@ -105,6 +105,9 @@ LOCALEMODE?= ${NONBINMODE}
CDIAGFLAGS= -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes
CDIAGFLAGS+= -Wmissing-prototypes -Wunused -Wsign-compare -Wbounded
CDIAGFLAGS+= -Wshadow
+. if ${COMPILER_VERSION} == "gcc4"
+CDIAGFLAGS+= -Wdeclaration-after-statement
+. endif
.endif
# Shared files for system gnu configure, not used yet