Merge branch 'vendor/LDNS'
[dragonfly.git] / sys / conf / bsd.kern.mk
1 # $FreeBSD: src/share/mk/bsd.kern.mk,v 1.17.2.1 2001/08/01 16:56:56 obrien 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 #
10 CWARNFLAGS?=    -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes \
11                 -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual \
12                 -Wold-style-definition -std=c99
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 CFLAGS+= -finline-limit=${INLINE_LIMIT}
22 CFLAGS+= --param inline-unit-growth=100
23 CFLAGS+= --param large-function-growth=1000
24
25 # Require the proper use of 'extern' for variables.  -fno-common will
26 # cause duplicate declarations to generate a link error.
27 #
28 CFLAGS+=        -fno-common
29
30 # Prevent GCC 3.x from making certain libc based inline optimizations
31 #
32 CFLAGS+=        -ffreestanding
33
34 .include "../platform/${MACHINE_PLATFORM}/conf/kern.mk"