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.
This commit is contained in:
Bruce Evans 1996-11-11 15:49:27 +00:00
parent 11874b34bf
commit a400403a8c
2 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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