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:
parent
11874b34bf
commit
a400403a8c
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user