1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-20 02:38:43 +00:00

Be more strict with WARNS now -- the GCC 3.1 turmoil is behind us.

This commit is contained in:
David E. O'Brien 2002-07-07 18:47:52 +00:00
parent 3238ad66ae
commit bf4ca1009b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=99542

View File

@ -11,6 +11,9 @@
.if !defined(NO_WARNS)
. if defined(WARNS)
. if ${WARNS} > 0
. if !defined(NO_WERROR)
CFLAGS += -Werror
. endif
. endif
. if ${WARNS} > 1
CFLAGS += -Wall -Wno-format-y2k
@ -42,6 +45,9 @@ WFORMAT = 1
. if ${WFORMAT} > 0
#CFLAGS += -Wformat-nonliteral -Wformat-security -Wno-format-extra-args
CFLAGS += -Wformat=2 -Wno-format-extra-args
. if !defined(NO_WERROR)
CFLAGS += -Werror
. endif
. endif
. endif
.endif