[roll pigweed] pw_build: Build upstream Pigweed code with -Wpedantic

- 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).

Original-Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/107390

https://pigweed.googlesource.com/pigweed/pigweed
pigweed Rolled-Commits: 0f693fcf19fb0eb..1e67862f9dd32d8
Roller-URL: https://ci.chromium.org/b/8805377117894184625
CQ-Do-Not-Cancel-Tryjobs: true
Change-Id: I0746ad12ea276903e1cbfb8fdc6a2483abbd4307
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/zephyr-integration/+/107640
Bot-Commit: Pigweed Integration Roller <pigweed-integration-roller@pigweed.google.com.iam.gserviceaccount.com>
Commit-Queue: Pigweed Integration Roller <pigweed-integration-roller@pigweed.google.com.iam.gserviceaccount.com>
1 file changed
tree: ec06ab805622a458da90f413f8df9080dc4babbf
  1. .gitmodules
  2. test.sh