diff options
author | Robin Peng <robinpeng@google.com> | 2023-02-03 04:32:18 +0000 |
---|---|---|
committer | Robin Peng <robinpeng@google.com> | 2023-02-03 05:04:45 +0000 |
commit | c77e8b53486228479b8fd2e64b992bdd528aa02c (patch) | |
tree | 3eb8851a39f4e64af10a6a088d412dfc58915633 | |
parent | 2d99da4fd2adea23ab8227887977ab84e57054ce (diff) | |
download | gs-android-gs-pantah-5.10-u-preview-2.tar.gz |
Revert "kbuild: Re-enable -Wformat, -Wformat-zero-length for clang"android-u-preview-2_r0.4android-u-preview-2_r0.3android-gs-pantah-5.10-u-preview-2android-gs-bluejay-5.10-u-preview-2
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.extrawarn | 2 |
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) |