kern.mk (278229) | kern.mk (278913) |
---|---|
1# $FreeBSD: head/sys/conf/kern.mk 278229 2015-02-05 01:36:53Z peter $ | 1# $FreeBSD: head/sys/conf/kern.mk 278913 2015-02-17 19:27:14Z glebius $ |
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} \ 9 -Wmissing-include-dirs -fdiagnostics-show-option \ --- 24 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" | 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} \ 9 -Wmissing-include-dirs -fdiagnostics-show-option \ --- 24 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 --- |