diff options
author | Ed Schouten <ed@FreeBSD.org> | 2013-04-19 19:45:00 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2013-04-19 19:45:00 +0000 |
commit | 7e659f9491705cacb49bd0154b1c23704f55ed0d (patch) | |
tree | 1891dfdc2dd1f99e115fc2d96089a475729f0e87 /usr.bin/ar | |
parent | c0794a841df1a3ea4cad6cba1710f910d4360106 (diff) | |
download | src-test2-7e659f9491705cacb49bd0154b1c23704f55ed0d.tar.gz src-test2-7e659f9491705cacb49bd0154b1c23704f55ed0d.zip |
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@
Notes
Notes:
svn path=/head/; revision=249657
Diffstat (limited to 'usr.bin/ar')
-rw-r--r-- | usr.bin/ar/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/ar/Makefile b/usr.bin/ar/Makefile index fa250720ebfe..03d9814c1018 100644 --- a/usr.bin/ar/Makefile +++ b/usr.bin/ar/Makefile @@ -8,6 +8,8 @@ SRCS= ar.c acplex.l acpyacc.y read.c util.c write.c y.tab.h DPADD= ${LIBARCHIVE} ${LIBELF} ${LIBZ} LDADD= -larchive -lelf -lz +NO_WMISSING_VARIABLE_DECLARATIONS= + CFLAGS+=-I. -I${.CURDIR} .if ${MK_SHARED_TOOLCHAIN} == "no" |