diff options
author | Tom Craig <tommycraig@gmail.com> | 2022-06-28 19:33:57 +0000 |
---|---|---|
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-06-28 19:33:57 +0000 |
commit | 589e2b7a06886f0f3023b8e7a653a306e5b18703 (patch) | |
tree | bff6622379b69906e10a9253235fba2379acf2ac /pw_build | |
parent | 2ba0413a1ffeafed9a32a3700cc9098d26c824ea (diff) | |
download | pigweed-589e2b7a06886f0f3023b8e7a653a306e5b18703.tar.gz |
pw_build: -Wswitch-enum in internal_strict config
Makes pigweed compatible with -Wswitch-enum, and adds -Wswitch-enum
to internal_strict_warnings to prevent regressions.
NB: This does NOT enable -Wswitch-enum in downstream projects.
Change-Id: I0cdec0006316e0b0720c1ce147bdbfc22d84a4b4
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/98882
Commit-Queue: Wyatt Hepler <hepler@google.com>
Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
Diffstat (limited to 'pw_build')
-rw-r--r-- | pw_build/BUILD.gn | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pw_build/BUILD.gn b/pw_build/BUILD.gn index 5824a8058..bf92666fb 100644 --- a/pw_build/BUILD.gn +++ b/pw_build/BUILD.gn @@ -119,6 +119,7 @@ config("extra_strict_warnings") { # This config MUST NOT be used downstream to allow for warnings to be # added in the future without breaking downstream. config("internal_strict_warnings") { + cflags = [ "-Wswitch-enum" ] cflags_cc = [ "-Wextra-semi" ] } |