summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.sys.mk
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-05-10 01:58:16 +0000
committerobrien <obrien@FreeBSD.org>2002-05-10 01:58:16 +0000
commit4267f26cd12834761ab9e3002ec3be631a3557c6 (patch)
treeb69f883ec9384ac426cffe6aec948eac57a1462d /share/mk/bsd.sys.mk
parent57715923469e79012bb4d5af63703da60c10f399 (diff)
downloadFreeBSD-src-4267f26cd12834761ab9e3002ec3be631a3557c6.zip
FreeBSD-src-4267f26cd12834761ab9e3002ec3be631a3557c6.tar.gz
Gcc 3.1 has different -Wx flags.
Diffstat (limited to 'share/mk/bsd.sys.mk')
-rw-r--r--share/mk/bsd.sys.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk
index f5740da..2988a5b 100644
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -6,6 +6,8 @@
# Enable various levels of compiler warning checks. These may be
# overridden (e.g. if using a non-gcc compiler) by defining NO_WARNS.
+# for GCC: http://gcc.gnu.org/onlinedocs/gcc-3.0.4/gcc_3.html#IDX143
+
.if !defined(NO_WARNS)
. if defined(WARNS)
. if ${WARNS} > 0
@@ -14,7 +16,7 @@ CFLAGS += -Werror
. endif
. endif
. if ${WARNS} > 1
-CFLAGS += -Wall
+CFLAGS += -Wall -Wno-format-y2k
. endif
. if ${WARNS} > 2
CFLAGS += -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
@@ -41,7 +43,8 @@ WFORMAT = 1
. endif
. if defined(WFORMAT)
. if ${WFORMAT} > 0
-CFLAGS += -Wnon-const-format -Wno-format-extra-args
+#CFLAGS += -Wformat-nonliteral -Wformat-security -Wno-format-extra-args
+CFLAGS += -Wformat=2 -Wno-format-extra-args
. if !defined(NO_WERROR)
CFLAGS += -Werror
. endif
OpenPOWER on IntegriCloud