1998-12-17 22:36:21 +00:00
|
|
|
# $Id: bsd.kern.mk,v 1.11 1998/12/14 21:03:27 archie Exp $
|
1996-10-08 22:10:49 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Warning flags for compiling the kernel and components of the kernel.
|
|
|
|
#
|
1996-11-11 15:49:27 +00:00
|
|
|
CWARNFLAGS?= -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit \
|
1996-10-08 22:10:49 +00:00
|
|
|
-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes \
|
1998-12-14 21:03:27 +00:00
|
|
|
-Wpointer-arith -Winline -Wuninitialized -Wformat -Wunused \
|
1998-09-09 10:04:58 +00:00
|
|
|
-fformat-extensions -ansi
|
1996-10-08 22:10:49 +00:00
|
|
|
#
|
|
|
|
# The following flags are next up for working on:
|
1998-12-14 21:03:27 +00:00
|
|
|
# -W -Wcast-qual -Wall
|
1996-10-08 22:10:49 +00:00
|
|
|
#
|
|
|
|
# When working on removing warnings from code, the `-Werror' flag should be
|
|
|
|
# of material assistance.
|
|
|
|
#
|
1998-12-17 22:36:21 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# On the alpha, make sure that we don't use floating-point registers and
|
|
|
|
# allow the use of EV56 instructions (only needed for low-level i/o).
|
|
|
|
#
|
|
|
|
.if ${MACHINE_ARCH} == "alpha"
|
|
|
|
CFLAGS+= -mno-fp-regs -Wa,-mev56
|
|
|
|
.endif
|