blob: af02e59e80ea28ebea1a8ac4cb5d5030469c3f73 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# $Id: bsd.kern.mk,v 1.12 1998/12/17 22:36:21 dfr Exp $
#
# Warning flags for compiling the kernel and components of the kernel.
#
#CWARNFLAGS?= -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit \
# -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes \
# -Wpointer-arith -Winline -Wuninitialized -Wformat -Wunused \
# -fformat-extensions -ansi
CWARNFLAGS?= -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes \
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual \
-fformat-extensions -ansi
#
# The following flags are next up for working on:
# -W ( note: -W may be included by -Wall )
#
# When working on removing warnings from code, the `-Werror' flag should be
# of material assistance.
#
#
# 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
|