summaryrefslogtreecommitdiff
path: root/zephyr
diff options
context:
space:
mode:
authorJeremy Bettis <jbettis@google.com>2021-10-29 09:42:31 -0600
committerCommit Bot <commit-bot@chromium.org>2021-10-29 17:54:04 +0000
commitd3d7afedfa17c503b0ccea9512d76a98517a7f88 (patch)
treeaf8fa82d4297081607b508825df58f7e22d64fe6 /zephyr
parent72233c202817925b654ddbc33a8a9f7b94db5628 (diff)
downloadchrome-ec-d3d7afedfa17c503b0ccea9512d76a98517a7f88.tar.gz
zephyr: Error on missing braces
Make missing braces an error in chroot, like it is in the gitlab build. crrev/c/3219472 broke the gitlab build, but wasn't caught in CQ. BRANCH=None BUG=b:184856083 TEST=zmake configure -b zephyr/test/drivers/ Cq-Depend: chromium:3253430 Change-Id: Ie20e82bc7211bc971f838fff6258c81e8a97bdd3 Signed-off-by: Jeremy Bettis <jbettis@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3253429 Commit-Queue: Jeremy Bettis <jbettis@chromium.org> Tested-by: Jeremy Bettis <jbettis@chromium.org> Reviewed-by: Aaron Massey <aaronmassey@google.com>
Diffstat (limited to 'zephyr')
-rw-r--r--zephyr/cmake/compiler/clang/compiler_flags.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/zephyr/cmake/compiler/clang/compiler_flags.cmake b/zephyr/cmake/compiler/clang/compiler_flags.cmake
index d247bd622d..815078a15a 100644
--- a/zephyr/cmake/compiler/clang/compiler_flags.cmake
+++ b/zephyr/cmake/compiler/clang/compiler_flags.cmake
@@ -7,4 +7,4 @@ include("${ZEPHYR_BASE}/cmake/compiler/clang/compiler_flags.cmake")
# Disable -fno-freestanding.
set_compiler_property(PROPERTY hosted)
-check_set_compiler_property(APPEND PROPERTY warning_extended -Wunused-variable -Werror=unused-variable)
+check_set_compiler_property(APPEND PROPERTY warning_extended -Wunused-variable -Werror=unused-variable -Werror=missing-braces)