diff options
author | Warner Losh <imp@FreeBSD.org> | 2014-10-09 16:39:10 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2014-10-09 16:39:10 +0000 |
commit | f5bb55249ab2b8f92e93c4c336154164931c13a7 (patch) | |
tree | 2ee0d023849f2703414f01d9fae4171069a8d105 /sys/conf | |
parent | a5edb5fb53bc3fc64cd3b9d8f63e117358501fdc (diff) | |
download | src-f5bb55249ab2b8f92e93c4c336154164931c13a7.tar.gz src-f5bb55249ab2b8f92e93c4c336154164931c13a7.zip |
When building with a newer GCC, suppress some warnings for the
moment. The kernel isn't ready for them without a lot of work.
Notes
Notes:
svn path=/head/; revision=272829
Diffstat (limited to 'sys/conf')
-rw-r--r-- | sys/conf/kern.mk | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk index c3fb9695fd4f..e4819c663edc 100644 --- a/sys/conf/kern.mk +++ b/sys/conf/kern.mk @@ -33,7 +33,13 @@ CWARNEXTRA?= -Wno-error-tautological-compare -Wno-error-empty-body \ .endif .if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 40300 -CWARNEXTRA?= -Wno-inline +# Catch-all for all the things that are in our tree, but for which we're +# not yet ready for this compiler. Note: we likely only really "support" +# building with gcc 4.8 and newer. Nothing older has been tested. +CWARNEXTRA?= -Wno-error=inline -Wno-error=enum-compare -Wno-error=unused-but-set-variable \ + -Wno-error=aggressive-loop-optimizations -Wno-error=maybe-uninitialized \ + -Wno-error=unused-local-typedefs -Wno-error=array-bounds -Wno-error=address \ + -Wno-error=cast-qual -Wno-error=sequence-point -Wno-error=attributes .endif # External compilers may not support our format extensions. Allow them |