scripts: add -Wno-format KBUILD_CFLAGS for clang 17
clang update to 17 causes many compilation error: "format specifies type 'unsigned long long' but the argument has type 'unsigned int' [-Werror,-Wformat]". Add -Wno-format KBUILD_CFLAGS for clang 17 as a short term solution, Will fix all build error in different modules as a long term solution on newer clang. Change-Id: If38ba96a24bf1bd794d254896c2f92763b96f926 Signed-off-by: jianzhou <quic_jianzhou@quicinc.com>
This commit is contained in:
parent
700923fa03
commit
88b002869b
@ -48,7 +48,7 @@ else
|
||||
ifdef CONFIG_CC_IS_CLANG
|
||||
KBUILD_CFLAGS += -Wno-initializer-overrides
|
||||
# Clang before clang-16 would warn on default argument promotions.
|
||||
ifneq ($(call clang-min-version, 170000),y)
|
||||
ifneq ($(call clang-min-version, 180000),y)
|
||||
# Disable -Wformat
|
||||
KBUILD_CFLAGS += -Wno-format
|
||||
# Then re-enable flags that were part of the -Wformat group that aren't
|
||||
|
Loading…
Reference in New Issue
Block a user