kern.mk (53f2fbcab4ca497c4bed5e5728534468e2b9e992) kern.mk (cc4a90c445aa04be36c3ef745cbe67fa339b94b5)
1# $FreeBSD$
2
3#
4# Warning flags for compiling the kernel and components of the kernel:
5#
6CWARNFLAGS?= -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes \
7 -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual \
8 -Wundef -Wno-pointer-sign ${FORMAT_EXTENSIONS} \

--- 25 unchanged lines hidden (view full) ---

34CLANG_NO_IAS= -no-integrated-as
35.if ${COMPILER_VERSION} < 30500
36# XXX: clang < 3.5 integrated-as doesn't grok .codeNN directives
37CLANG_NO_IAS34= -no-integrated-as
38.endif
39.endif
40
41.if ${COMPILER_TYPE} == "gcc"
1# $FreeBSD$
2
3#
4# Warning flags for compiling the kernel and components of the kernel:
5#
6CWARNFLAGS?= -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes \
7 -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual \
8 -Wundef -Wno-pointer-sign ${FORMAT_EXTENSIONS} \

--- 25 unchanged lines hidden (view full) ---

34CLANG_NO_IAS= -no-integrated-as
35.if ${COMPILER_VERSION} < 30500
36# XXX: clang < 3.5 integrated-as doesn't grok .codeNN directives
37CLANG_NO_IAS34= -no-integrated-as
38.endif
39.endif
40
41.if ${COMPILER_TYPE} == "gcc"
42GCC_MS_EXTENSIONS= -fms-extensions
43.if ${COMPILER_VERSION} >= 40300
44# Catch-all for all the things that are in our tree, but for which we're
45# not yet ready for this compiler. Note: we likely only really "support"
46# building with gcc 4.8 and newer. Nothing older has been tested.
47CWARNEXTRA?= -Wno-error=inline -Wno-error=enum-compare -Wno-error=unused-but-set-variable \
48 -Wno-error=aggressive-loop-optimizations -Wno-error=maybe-uninitialized \
49 -Wno-error=array-bounds -Wno-error=address \
50 -Wno-error=cast-qual -Wno-error=sequence-point -Wno-error=attributes \

--- 166 unchanged lines hidden ---
42.if ${COMPILER_VERSION} >= 40300
43# Catch-all for all the things that are in our tree, but for which we're
44# not yet ready for this compiler. Note: we likely only really "support"
45# building with gcc 4.8 and newer. Nothing older has been tested.
46CWARNEXTRA?= -Wno-error=inline -Wno-error=enum-compare -Wno-error=unused-but-set-variable \
47 -Wno-error=aggressive-loop-optimizations -Wno-error=maybe-uninitialized \
48 -Wno-error=array-bounds -Wno-error=address \
49 -Wno-error=cast-qual -Wno-error=sequence-point -Wno-error=attributes \

--- 166 unchanged lines hidden ---