Streamline format extensions. Either the compiler supports them, and
we enable them and format wordings. Or it doesn't, and we disable format warnings because the kernel uses the extensions pervasively.
This commit is contained in:
parent
9f746b66df
commit
e94a64de00
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=269979
@ -29,14 +29,13 @@ NO_WSOMETIMES_UNINITIALIZED= -Wno-error-sometimes-uninitialized
|
||||
# enough to error out the whole kernel build. Display them anyway, so there is
|
||||
# some incentive to fix them eventually.
|
||||
CWARNEXTRA?= -Wno-error-tautological-compare -Wno-error-empty-body \
|
||||
-Wno-error-parentheses-equality -Wno-error-unused-function \
|
||||
${NO_WFORMAT}
|
||||
-Wno-error-parentheses-equality -Wno-error-unused-function
|
||||
.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"
|
||||
NO_WFORMAT= -Wno-format
|
||||
FORMAT_EXTENSIONS= -Wno-format
|
||||
.else
|
||||
FORMAT_EXTENSIONS= -fformat-extensions
|
||||
.endif
|
||||
|
Loading…
Reference in New Issue
Block a user