xref: /freebsd/sys/conf/kern.mk (revision 380a989b3223d455375b4fae70fd0b9bdd43bafb)
1#	$Id: bsd.kern.mk,v 1.11 1998/12/14 21:03:27 archie Exp $
2
3#
4# Warning flags for compiling the kernel and components of the kernel.
5#
6CWARNFLAGS?=	-Wreturn-type -Wcomment -Wredundant-decls -Wimplicit \
7		-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes \
8		-Wpointer-arith -Winline -Wuninitialized -Wformat -Wunused \
9		-fformat-extensions -ansi
10#
11# The following flags are next up for working on:
12#	-W -Wcast-qual -Wall
13#
14# When working on removing warnings from code, the `-Werror' flag should be
15# of material assistance.
16#
17
18#
19# On the alpha, make sure that we don't use floating-point registers and
20# allow the use of EV56 instructions (only needed for low-level i/o).
21#
22.if ${MACHINE_ARCH} == "alpha"
23CFLAGS+=	-mno-fp-regs -Wa,-mev56
24.endif
25