mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-28 14:24:09 +01:00
9a6c0bd6c9
is not implied by -Wall as claimed by gcc.1. Adding it causes a measly 7193 new warnings for LINT, mostly for "unused parameter" and "comparison between signed and unsigned".
28 lines
865 B
Makefile
28 lines
865 B
Makefile
# $Id: bsd.kern.mk,v 1.14 1999/01/29 06:22:19 dillon Exp $
|
|
|
|
#
|
|
# Warning flags for compiling the kernel and components of the kernel.
|
|
#
|
|
# 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 \
|
|
-fformat-extensions -ansi
|
|
#
|
|
# 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.
|
|
#
|
|
|
|
#
|
|
# 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
|