1999-08-28 02:22:10 +02:00
|
|
|
# $FreeBSD$
|
1996-10-09 00:10:49 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# Warning flags for compiling the kernel and components of the kernel.
|
|
|
|
#
|
1999-01-29 11:57:18 +01:00
|
|
|
# Note that the newly added -Wcast-qual is responsible for generating
|
|
|
|
# most of the remaining warnings. Warnings introduced with -Wall will
|
|
|
|
# also pop up, but are easier to fix.
|
|
|
|
#
|
|
|
|
CWARNFLAGS?= -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes \
|
|
|
|
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual \
|
1998-09-09 12:04:58 +02:00
|
|
|
-fformat-extensions -ansi
|
1999-01-29 11:57:18 +01:00
|
|
|
#
|
|
|
|
# The following flags are next up for working on:
|
|
|
|
# -W
|
|
|
|
#
|
|
|
|
# When working on removing warnings from code, the `-Werror' flag should be
|
|
|
|
# of material assistance.
|
|
|
|
#
|
1999-01-27 23:53:58 +01:00
|
|
|
|
1998-12-17 23:36:21 +01: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
|