From a963e0c4d3c9712abcd82f81889a3ef110d52df1 Mon Sep 17 00:00:00 2001 From: bde Date: Mon, 11 Nov 1996 15:49:27 +0000 Subject: Turned off -W and -Winline so that the warnings that should be fixed for 2.2 are more obvious. -Winline is unimportant, but -W gives thousands of warnings for comparisions. Turning off -W also loses warnings for: - auto variables clobbered by longjmp. Not much of a problem in the kernel. - functions returning without a value. I don't like losing this. - an expression statement or the left side of a comma operand contains no side effects. Turning this off also stops warnings for the low quality debugging macros in gsc.c and lpt.c. Should be in 2.2. --- share/mk/bsd.kern.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'share/mk/bsd.kern.mk') diff --git a/share/mk/bsd.kern.mk b/share/mk/bsd.kern.mk index d6c5eaf..8aac111 100644 --- a/share/mk/bsd.kern.mk +++ b/share/mk/bsd.kern.mk @@ -1,11 +1,11 @@ -# $Id: bsd.kern.mk,v 1.1 1996/10/08 22:10:49 bde Exp $ +# $Id: bsd.kern.mk,v 1.2 1996/10/09 18:41:40 bde Exp $ # # Warning flags for compiling the kernel and components of the kernel. # -CWARNFLAGS?= -W -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit \ +CWARNFLAGS?= -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit \ -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes \ - -Winline -Wpointer-arith # -Wunused -Wcast-qual + -Wpointer-arith # -W -Winline -Wunused -Wcast-qual # # The following flags are next up for working on: # -Wformat -Wall -- cgit v1.1