diff options
author | Tristan Honscheid <honscheid@google.com> | 2021-12-13 13:50:25 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-12-13 22:08:52 +0000 |
commit | a3d26f8c55a35ff59e1c00be33eff3cd519cfda7 (patch) | |
tree | 676cc8c401522956245c1f159dd98408a62518f0 | |
parent | 1fedb56f13781ef4151090cb8659fc9445bad4de (diff) | |
download | chrome-ec-a3d26f8c55a35ff59e1c00be33eff3cd519cfda7.tar.gz |
zephyr: cmake: Enable -Wno-address-of-packed-member
As a workaround to a recent Zephyr upstream change enabling this
warning, we need to suppress it within the EC build or else one of our
drivers fails to build.
BUG=b:210501420
BRANCH=None
TEST=zmake configure -b volteer;
Cq-Depend: chromium:3332173
Change-Id: I28bd5ecb0a79e52673490d2ddea21375fb66e75c
Signed-off-by: Tristan Honscheid <honscheid@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3332120
Reviewed-by: Keith Short <keithshort@chromium.org>
-rw-r--r-- | zephyr/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/zephyr/CMakeLists.txt b/zephyr/CMakeLists.txt index dab7882231..79abbf07ff 100644 --- a/zephyr/CMakeLists.txt +++ b/zephyr/CMakeLists.txt @@ -61,6 +61,12 @@ if(DEFINED CONFIG_PLATFORM_EC) set_property(TARGET app PROPERTY INTERPROCEDURAL_OPTIMIZATION True) endif() endif() + + set_compiler_property(APPEND PROPERTY warning_base + # TODO(b/210501420): Make EC code compatible with + # -W-address-of-packed-member + -Wno-address-of-packed-member + ) endif() # Switch from the "zephyr" library to the "app" library for all Chromium OS |