diff options
author | Tom Hughes <tomhughes@chromium.org> | 2022-03-24 14:09:12 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-03-28 17:20:38 +0000 |
commit | f74e2c127e68c0f203a0e3372f4d5784e61b7454 (patch) | |
tree | f2a0d0128cc555cfd21ab61f72b26a50765f0ca9 /Makefile.toolchain | |
parent | d59d28590dccd73097c0089ad8081589f7901bc6 (diff) | |
download | chrome-ec-f74e2c127e68c0f203a0e3372f4d5784e61b7454.tar.gz |
Makefile: Disable unused function warning when building with clang
The CLs required to fix this warning when building with clang are large
and touch many files:
https://crrev.com/c/3223973
https://crrev.com/c/3227261
For now, we'll disable the warning so that compiling with clang
succeeds.
BRANCH=none
BUG=b:172020503
TEST=./util/compare_build.sh -b all -j 120
=> MATCH
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: I232b41824cf66286866808733a6728ec964d45ce
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3551678
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'Makefile.toolchain')
-rw-r--r-- | Makefile.toolchain | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.toolchain b/Makefile.toolchain index 32e39c067e..69a3c3b9f3 100644 --- a/Makefile.toolchain +++ b/Makefile.toolchain @@ -76,6 +76,10 @@ endif ifeq ($(cc-name),clang) # TODO(b/172020503): Re-enabling this warning requires a large CL. C_WARN+= -Wno-ignored-attributes +# TODO(b/172020503): Re-enabling this warning requires the following large CLs: +# https://crrev.com/c/3223973 +# https://crrev.com/c/3227261 +COMMON_WARN+= -Wno-unused-function endif UBSAN_FLAGS=-fsanitize=array-bounds,vla-bound \ |