Disable all inline warnings on gcc >= 4.3. Not sure exactly where the

cutover is, but we need better tools to cope with inline tuning per
compiler version than we have. This is a quick bandaid until such
tools are around.
This commit is contained in:
Warner Losh 2014-08-14 16:01:46 +00:00
parent d628fa28fa
commit 20256b0bed
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=269981

View File

@ -32,6 +32,10 @@ CWARNEXTRA?= -Wno-error-tautological-compare -Wno-error-empty-body \
-Wno-error-parentheses-equality -Wno-error-unused-function
.endif
.if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 40300
CWARNEXTRA?= -Wno-inline
.endif
# External compilers may not support our format extensions. Allow them
# to be disabled. WARNING: format checking is disabled in this case.
.if ${MK_FORMAT_EXTENSIONS} == "no"