Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk Introduce a second level of WARNS for even more par...
details: https://anonhg.NetBSD.org/src/rev/193668f606da
branches: trunk
changeset: 474483:193668f606da
user: christos <christos%NetBSD.org@localhost>
date: Thu Jul 08 01:55:38 1999 +0000
description:
Introduce a second level of WARNS for even more paranoia
diffstat:
share/mk/bsd.sys.mk | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (22 lines):
diff -r 6a803f770502 -r 193668f606da share/mk/bsd.sys.mk
--- a/share/mk/bsd.sys.mk Thu Jul 08 01:51:57 1999 +0000
+++ b/share/mk/bsd.sys.mk Thu Jul 08 01:55:38 1999 +0000
@@ -1,10 +1,16 @@
-# $NetBSD: bsd.sys.mk,v 1.34 1999/01/31 09:17:20 mrg Exp $
+# $NetBSD: bsd.sys.mk,v 1.35 1999/07/08 01:55:38 christos Exp $
#
# Overrides used for NetBSD source tree builds.
-.if defined(WARNS) && ${WARNS} == 1
+.if defined(WARNS)
+.if ${WARNS} > 0
CFLAGS+= -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
.endif
+.if ${WARNS} > 1
+CFLAGS+=-Wreturn-type -Wcast-qual -Wpointer-arith -Wwrite-strings
+CFLAGS+=-Wswitch -Wshadow
+.endif
+.endif
.if !defined(NOGCCERROR)
CFLAGS+= -Werror
.endif
Home |
Main Index |
Thread Index |
Old Index