diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2002-01-05 20:17:50 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2002-01-05 20:17:50 +0000 |
commit | ff2a69a53b4ac9b4a9881c4c9cc0ef9a1f9fa7d2 (patch) | |
tree | f89048c9aad79b84386c56b7c3d436975932ab53 /share/mk/bsd.sys.mk | |
parent | 7bc655e78562e9bf86dc1e81ca7c633b77f2eb5b (diff) | |
download | FreeBSD-src-ff2a69a53b4ac9b4a9881c4c9cc0ef9a1f9fa7d2.zip FreeBSD-src-ff2a69a53b4ac9b4a9881c4c9cc0ef9a1f9fa7d2.tar.gz |
Put -Wno-uninitialized at the end of the warns flags as it may be enabeled
by several flags (in this case -W and -Wall).
Reviewed by: bde
Diffstat (limited to 'share/mk/bsd.sys.mk')
-rw-r--r-- | share/mk/bsd.sys.mk | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index 08de687..ea0abc0 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -15,9 +15,6 @@ CFLAGS += -Werror . endif . if ${WARNS} > 1 CFLAGS += -Wall -# XXX Delete -Wuninitialized by default for now -- the compiler doesn't -# XXX always get it right. -CFLAGS += -Wno-uninitialized . endif . if ${WARNS} > 2 CFLAGS += -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith @@ -25,6 +22,11 @@ CFLAGS += -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith . if ${WARNS} > 3 CFLAGS += -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align . endif +. if ${WARNS} > 1 +# XXX Delete -Wuninitialized by default for now -- the compiler doesn't +# XXX always get it right. +CFLAGS += -Wno-uninitialized +. endif . endif . if defined(FORMAT_AUDIT) |