diff options
author | ed <ed@FreeBSD.org> | 2013-04-19 19:45:00 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2013-04-19 19:45:00 +0000 |
commit | 120125784a1ca698c656c6ef5e21e219df994f64 (patch) | |
tree | 1891dfdc2dd1f99e115fc2d96089a475729f0e87 /usr.bin/mklocale | |
parent | e342f91158ed3a8e688d9b01fd14d57ad91ea8b0 (diff) | |
download | FreeBSD-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.bin/mklocale')
-rw-r--r-- | usr.bin/mklocale/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/mklocale/Makefile b/usr.bin/mklocale/Makefile index e75fe99..83850c4 100644 --- a/usr.bin/mklocale/Makefile +++ b/usr.bin/mklocale/Makefile @@ -5,4 +5,6 @@ PROG= mklocale SRCS= yacc.y lex.l y.tab.h CFLAGS+= -I. -I${.CURDIR} -I${.CURDIR}/../../lib/libc/locale +NO_WMISSING_VARIABLE_DECLARATIONS= + .include <bsd.prog.mk> |