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
e11aaa26b0
commit
17292ebfcb
@ -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