diff options
author | obrien <obrien@FreeBSD.org> | 2002-07-07 18:47:52 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2002-07-07 18:47:52 +0000 |
commit | 6793e7aaf6adf79bc75aaff6bd5250048f3f61f5 (patch) | |
tree | 682092f971633ccc2c207ca16a508ebacb0bfc22 /share/mk/bsd.sys.mk | |
parent | 0985bbadd97d8ec2fd1c4e84495bd61f3caee434 (diff) | |
download | FreeBSD-src-6793e7aaf6adf79bc75aaff6bd5250048f3f61f5.zip FreeBSD-src-6793e7aaf6adf79bc75aaff6bd5250048f3f61f5.tar.gz |
Be more strict with WARNS now -- the GCC 3.1 turmoil is behind us.
Diffstat (limited to 'share/mk/bsd.sys.mk')
-rw-r--r-- | share/mk/bsd.sys.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index f439a08..2988a5b 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -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 |