summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Peng <robinpeng@google.com>2023-02-03 04:32:18 +0000
committerRobin Peng <robinpeng@google.com>2023-02-03 05:04:45 +0000
commitc77e8b53486228479b8fd2e64b992bdd528aa02c (patch)
tree3eb8851a39f4e64af10a6a088d412dfc58915633
parent2d99da4fd2adea23ab8227887977ab84e57054ce (diff)
downloadgs-android-gs-pantah-5.10-u-preview-2.tar.gz
This reverts commit ef31abe316782731180c1a9ef7d21906a3529af4. Now that CONFIG_WERROR is enabled in GKI, we are seeing some werrors caused by -Wformat and -Wno-format-zero-length. Some how this file got modified and those flags were dropped. Re-add them to match the ACK version of this file and fix the current build errors. Bug: 255246572 Change-Id: I497118288c052c661db1317ae778c58b27109219 Signed-off-by: Will McVicker <willmcvicker@google.com> Signed-off-by: Robin Peng <robinpeng@google.com>
-rw-r--r--scripts/Makefile.extrawarn2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn
index 050825aa059a..fe327a4532dd 100644
--- a/scripts/Makefile.extrawarn
+++ b/scripts/Makefile.extrawarn
@@ -46,7 +46,9 @@ else
ifdef CONFIG_CC_IS_CLANG
KBUILD_CFLAGS += -Wno-initializer-overrides
+KBUILD_CFLAGS += -Wno-format
KBUILD_CFLAGS += -Wno-sign-compare
+KBUILD_CFLAGS += -Wno-format-zero-length
KBUILD_CFLAGS += $(call cc-disable-warning, pointer-to-enum-cast)
KBUILD_CFLAGS += -Wno-tautological-constant-out-of-range-compare
KBUILD_CFLAGS += $(call cc-disable-warning, unaligned-access)