xref: /freebsd/sys/conf/kern.mk (revision 6e8394b8baa7d5d9153ab90de6824bcd19b3b4e1)
1#	$Id: bsd.kern.mk,v 1.14 1999/01/29 06:22:19 dillon Exp $
2
3#
4# Warning flags for compiling the kernel and components of the kernel.
5#
6# Note that the newly added -Wcast-qual is responsible for generating
7# most of the remaining warnings.  Warnings introduced with -Wall will
8# also pop up, but are easier to fix.
9#
10CWARNFLAGS?=	-Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes \
11		-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual \
12		-fformat-extensions -ansi
13#
14# The following flags are next up for working on:
15#	-W
16#
17# When working on removing warnings from code, the `-Werror' flag should be
18# of material assistance.
19#
20
21#
22# On the alpha, make sure that we don't use floating-point registers and
23# allow the use of EV56 instructions (only needed for low-level i/o).
24#
25.if ${MACHINE_ARCH} == "alpha"
26CFLAGS+=	-mno-fp-regs -Wa,-mev56
27.endif
28