When building with a newer GCC, suppress some warnings for the

moment. The kernel isn't ready for them without a lot of work.
This commit is contained in:
Warner Losh 2014-10-09 16:39:10 +00:00
parent a5edb5fb53
commit f5bb55249a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=272829

View File

@ -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