summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2013-04-19 19:45:00 +0000
committered <ed@FreeBSD.org>2013-04-19 19:45:00 +0000
commit120125784a1ca698c656c6ef5e21e219df994f64 (patch)
tree1891dfdc2dd1f99e115fc2d96089a475729f0e87 /sbin
parente342f91158ed3a8e688d9b01fd14d57ad91ea8b0 (diff)
downloadFreeBSD-src-120125784a1ca698c656c6ef5e21e219df994f64.zip
FreeBSD-src-120125784a1ca698c656c6ef5e21e219df994f64.tar.gz
Add the Clang specific -Wmissing-variable-declarations to WARNS=6.
This compiler flag enforces that that people either mark variables static or use an external declarations for the variable, similar to how -Wmissing-prototypes works for functions. Due to the fact that Yacc/Lex generate code that cannot trivially be changed to not warn because of this (lots of yy* variables), add a NO_WMISSING_VARIABLE_DECLARATIONS that can be used to turn off this specific compiler warning. Announced on: toolchain@
Diffstat (limited to 'sbin')
-rw-r--r--sbin/gbde/Makefile1
-rw-r--r--sbin/geom/class/Makefile.inc2
-rw-r--r--sbin/hastctl/Makefile1
-rw-r--r--sbin/hastd/Makefile1
-rw-r--r--sbin/md5/Makefile1
5 files changed, 6 insertions, 0 deletions
diff --git a/sbin/gbde/Makefile b/sbin/gbde/Makefile
index 3975eb6..019ee18 100644
--- a/sbin/gbde/Makefile
+++ b/sbin/gbde/Makefile
@@ -10,6 +10,7 @@ SRCS+= g_bde_lock.c
# rijndael-fst.c does evil casting things which can results in warnings,
# the test-vectors check out however, so it works right.
NO_WCAST_ALIGN=
+NO_WMISSING_VARIABLE_DECLARATIONS=
CFLAGS+= -I${.CURDIR}/../../sys
.PATH: ${.CURDIR}/../../sys/geom/bde \
diff --git a/sbin/geom/class/Makefile.inc b/sbin/geom/class/Makefile.inc
index 6f0141e..06b733f 100644
--- a/sbin/geom/class/Makefile.inc
+++ b/sbin/geom/class/Makefile.inc
@@ -6,6 +6,8 @@ LINKS= ${BINDIR}/geom ${BINDIR}/g${GEOM_CLASS}
MAN= g${GEOM_CLASS}.8
SRCS+= geom_${GEOM_CLASS}.c subr.c
+NO_WMISSING_VARIABLE_DECLARATIONS=
+
CFLAGS+= -I${.CURDIR}/../..
.include "../Makefile.inc"
diff --git a/sbin/hastctl/Makefile b/sbin/hastctl/Makefile
index e7cd9cb..2be817e 100644
--- a/sbin/hastctl/Makefile
+++ b/sbin/hastctl/Makefile
@@ -21,6 +21,7 @@ MAN= hastctl.8
NO_WFORMAT=
NO_WCAST_ALIGN=
+NO_WMISSING_VARIABLE_DECLARATIONS=
CFLAGS+=-I${.CURDIR}/../hastd
CFLAGS+=-DHAVE_CAPSICUM
CFLAGS+=-DINET
diff --git a/sbin/hastd/Makefile b/sbin/hastd/Makefile
index 2a4a9ce..43c7a52 100644
--- a/sbin/hastd/Makefile
+++ b/sbin/hastd/Makefile
@@ -21,6 +21,7 @@ MAN= hastd.8 hast.conf.5
NO_WFORMAT=
NO_WCAST_ALIGN=
+NO_WMISSING_VARIABLE_DECLARATIONS=
CFLAGS+=-I${.CURDIR}
CFLAGS+=-DHAVE_CAPSICUM
CFLAGS+=-DPROTO_TCP_DEFAULT_PORT=8457
diff --git a/sbin/md5/Makefile b/sbin/md5/Makefile
index c3c5a9f..eabf129 100644
--- a/sbin/md5/Makefile
+++ b/sbin/md5/Makefile
@@ -13,6 +13,7 @@ MLINKS= md5.1 rmd160.1 \
md5.1 sha256.1 \
md5.1 sha512.1
+NO_WMISSING_VARIABLE_DECLARATIONS=
WFORMAT?= 1
DPADD= ${LIBMD}
OpenPOWER on IntegriCloud