summaryrefslogtreecommitdiffstats
path: root/usr.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 /usr.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 'usr.sbin')
-rw-r--r--usr.sbin/auditdistd/Makefile1
-rw-r--r--usr.sbin/bluetooth/bthidd/Makefile2
-rw-r--r--usr.sbin/bsnmpd/modules/Makefile.inc2
-rw-r--r--usr.sbin/config/Makefile2
-rw-r--r--usr.sbin/fifolog/lib/Makefile2
-rw-r--r--usr.sbin/jail/Makefile2
6 files changed, 11 insertions, 0 deletions
diff --git a/usr.sbin/auditdistd/Makefile b/usr.sbin/auditdistd/Makefile
index 468290b..ee18bca 100644
--- a/usr.sbin/auditdistd/Makefile
+++ b/usr.sbin/auditdistd/Makefile
@@ -10,6 +10,7 @@ OPENBSMDIR=${.CURDIR}/../../contrib/openbsm
CFLAGS+=-I${OPENBSMDIR} -I${OPENBSMDIR}/bin/auditdistd
NO_WFORMAT=
+NO_WMISSING_VARIABLE_DECLARATIONS=
PROG= auditdistd
SRCS= auditdistd.c
diff --git a/usr.sbin/bluetooth/bthidd/Makefile b/usr.sbin/bluetooth/bthidd/Makefile
index dd0754d..fe6ef33 100644
--- a/usr.sbin/bluetooth/bthidd/Makefile
+++ b/usr.sbin/bluetooth/bthidd/Makefile
@@ -13,4 +13,6 @@ DEBUG_FLAGS= -g
DPADD= ${LIBBLUETOOTH} ${LIBUSBHID}
LDADD= -lbluetooth -lusbhid
+NO_WMISSING_VARIABLE_DECLARATIONS=
+
.include <bsd.prog.mk>
diff --git a/usr.sbin/bsnmpd/modules/Makefile.inc b/usr.sbin/bsnmpd/modules/Makefile.inc
index b5dad56..357b441 100644
--- a/usr.sbin/bsnmpd/modules/Makefile.inc
+++ b/usr.sbin/bsnmpd/modules/Makefile.inc
@@ -6,4 +6,6 @@ MANFILTER= sed -e 's%@MODPATH@%${LIBDIR}/%g' \
-e 's%@DEFPATH@%${DEFSDIR}/%g' \
-e 's%@MIBSPATH@%${BMIBSDIR}/%g'
+NO_WMISSING_VARIABLE_DECLARATIONS=
+
.include "../Makefile.inc"
diff --git a/usr.sbin/config/Makefile b/usr.sbin/config/Makefile
index 6faf847..6561989 100644
--- a/usr.sbin/config/Makefile
+++ b/usr.sbin/config/Makefile
@@ -11,6 +11,8 @@ kernconf.c: kernconf.tmpl
CFLAGS+= -I. -I${.CURDIR}
+NO_WMISSING_VARIABLE_DECLARATIONS=
+
DPADD= ${LIBL} ${LIBSBUF}
LDADD= -ll -lsbuf
diff --git a/usr.sbin/fifolog/lib/Makefile b/usr.sbin/fifolog/lib/Makefile
index c10126f..fc8e6d2 100644
--- a/usr.sbin/fifolog/lib/Makefile
+++ b/usr.sbin/fifolog/lib/Makefile
@@ -8,4 +8,6 @@ SRCS+= getdate.y
CFLAGS+= -I${.CURDIR}
+NO_WMISSING_VARIABLE_DECLARATIONS=
+
.include <bsd.lib.mk>
diff --git a/usr.sbin/jail/Makefile b/usr.sbin/jail/Makefile
index 00d7ff5..fb36def 100644
--- a/usr.sbin/jail/Makefile
+++ b/usr.sbin/jail/Makefile
@@ -9,6 +9,8 @@ SRCS= jail.c command.c config.c state.c jailp.h jaillex.l jailparse.y y.tab.h
DPADD= ${LIBJAIL} ${LIBKVM} ${LIBUTIL} ${LIBL}
LDADD= -ljail -lkvm -lutil -ll
+NO_WMISSING_VARIABLE_DECLARATIONS=
+
YFLAGS+=-v
CFLAGS+=-I. -I${.CURDIR}
OpenPOWER on IntegriCloud