- Enable pedantic warnings for upstream Pigweed builds.
- Use std::array instead of C arrays in pw_protobuf codegen to avoid
zero-length arrays.
- Cast pointers to void* when using %p in printf-style statements.
- Do not create empty structs in C.
- Do not return void expressions in C.
- Disable pedantic warnings related to features added in newer C++
standards (designated initializers, empty variadic arguments in
macros).
- Temporarily disable the nested-anon-types warning until these issues
are fixed (b/243045403).
Change-Id: I199d4d76949a066f631550848a6ba5dcb23d9b6a
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/107390
Reviewed-by: Scott James Remnant <keybuk@google.com>
Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
Reviewed-by: Keir Mierle <keir@google.com>
Commit-Queue: Wyatt Hepler <hepler@google.com>