AMD64 - Fix format conversions and other warnings.
[dragonfly.git] / sys / conf / bsd.kern.mk
blob1f493ac9139b22a11fe219c7029bee7d4d083292
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.16 2008/07/23 16:39:31 dillon 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 \
13 -Werror-implicit-function-declaration \
14 -std=c99
16 # The following flags are next up for working on:
17 # -W
19 # When working on removing warnings from code, the `-Werror' flag should be
20 # of material assistance.
23 CFLAGS+= -finline-limit=${INLINE_LIMIT}
24 CFLAGS+= --param inline-unit-growth=100
25 CFLAGS+= --param large-function-growth=1000
27 # Require the proper use of 'extern' for variables. -fno-common will
28 # cause duplicate declarations to generate a link error.
30 CFLAGS+= -fno-common
32 # Prevent GCC 3.x from making certain libc based inline optimizations
34 CFLAGS+= -ffreestanding
36 .include "../platform/${MACHINE_PLATFORM}/conf/kern.mk"