1 # $FreeBSD: src/share/mk/bsd.kern.mk,v 1.17.2.1 2001/08/01 16:56:56 obrien Exp $
2 # $DragonFly: src/sys/conf/bsd.kern.mk,v 1.8 2006/07/02 00:55:08 corecode Exp $
5 # Warning flags for compiling the kernel and components of the kernel.
7 # Note that the newly added -Wcast-qual is responsible for generating
8 # most of the remaining warnings. Warnings introduced with -Wall will
9 # also pop up, but are easier to fix.
11 CWARNFLAGS?= -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes \
12 -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual \
15 # The following flags are next up for working on:
18 # When working on removing warnings from code, the `-Werror' flag should be
19 # of material assistance.
22 # Require the proper use of 'extern' for variables. -fno-common will
23 # cause duplicate declarations to generate a link error.
27 # Prevent GCC 3.x from making certain libc based inline optimizations
29 CFLAGS+= -ffreestanding
31 .include "kern-${MACHINE_ARCH}.mk"