commit | c9759dc415e0771774b2991afd54ff83930ed5db | [log] [tgz] |
---|---|---|
author | Ewout van Bekkum <ewout@google.com> | Thu Oct 15 21:22:08 2020 -0700 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Sat Oct 17 00:29:48 2020 +0000 |
tree | 292901c3b1fa7d8ae8b4e67d312fc27beb266094 | |
parent | e4d7b690c861bf71f926aba5aa723e361aa3ede2 [diff] |
pw_build: add "-Wpointer-arith" to strict_warnings Adds "-Wpointer-arith" to "strict_warnings" to catch anything that depends on the “size of” a function type or void. Change-Id: I3d83c7a9c3c8c438c06592637c3c541c5378eac6 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/21684 Reviewed-by: Wyatt Hepler <hepler@google.com> Commit-Queue: Ewout van Bekkum <ewout@google.com>
diff --git a/pw_build/BUILD.gn b/pw_build/BUILD.gn index 339a031..d228f35 100644 --- a/pw_build/BUILD.gn +++ b/pw_build/BUILD.gn
@@ -73,6 +73,7 @@ "-Wimplicit-fallthrough", "-Wcast-qual", "-Wundef", + "-Wpointer-arith", # Make all warnings errors, except for the exemptions below. "-Werror",