summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.sys.mk
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2004-01-11 10:29:55 +0000
committerru <ru@FreeBSD.org>2004-01-11 10:29:55 +0000
commit032a5ac8ac2af81974aa6ae4fa2e114e80b9e9e9 (patch)
treeb901466cacf70c5294e55d46677dff2b18d0fa09 /share/mk/bsd.sys.mk
parent437b669defa6f22dc46f3bb6f50c9c062cacde19 (diff)
downloadFreeBSD-src-032a5ac8ac2af81974aa6ae4fa2e114e80b9e9e9.zip
FreeBSD-src-032a5ac8ac2af81974aa6ae4fa2e114e80b9e9e9.tar.gz
Put the warning flags to where they belong (into CWARNFLAGS).
This allows us to easily override them when necessary, e.g., to selectively disable warnings in libc/ contributed sources.
Diffstat (limited to 'share/mk/bsd.sys.mk')
-rw-r--r--share/mk/bsd.sys.mk20
1 files changed, 10 insertions, 10 deletions
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk
index e966ff8..d473079 100644
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -11,28 +11,28 @@
.if !defined(NO_WARNS)
. if defined(WARNS)
. if ${WARNS} > 0
-CFLAGS += -Wsystem-headers
+CWARNFLAGS += -Wsystem-headers
. if !defined(NO_WERROR)
-CFLAGS += -Werror
+CWARNFLAGS += -Werror
. endif
. endif
. if ${WARNS} > 1
-CFLAGS += -Wall -Wno-format-y2k
+CWARNFLAGS += -Wall -Wno-format-y2k
. endif
. if ${WARNS} > 2
-CFLAGS += -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
+CWARNFLAGS += -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
. endif
. if ${WARNS} > 3
-CFLAGS += -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align
+CWARNFLAGS += -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align
. endif
# BDECFLAGS
. if ${WARNS} > 5
-CFLAGS += -Wbad-function-cast -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls
+CWARNFLAGS += -Wbad-function-cast -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls
. endif
. if ${WARNS} > 1 && ${WARNS} < 5
# XXX Delete -Wuninitialized by default for now -- the compiler doesn't
# XXX always get it right.
-CFLAGS += -Wno-uninitialized
+CWARNFLAGS += -Wno-uninitialized
. endif
. endif
@@ -41,10 +41,10 @@ WFORMAT = 1
. endif
. if defined(WFORMAT)
. if ${WFORMAT} > 0
-#CFLAGS += -Wformat-nonliteral -Wformat-security -Wno-format-extra-args
-CFLAGS += -Wformat=2 -Wno-format-extra-args
+#CWARNFLAGS += -Wformat-nonliteral -Wformat-security -Wno-format-extra-args
+CWARNFLAGS += -Wformat=2 -Wno-format-extra-args
. if !defined(NO_WERROR)
-CFLAGS += -Werror
+CWARNFLAGS += -Werror
. endif
. endif
. endif
OpenPOWER on IntegriCloud