Commit Graph

2 Commits

Author SHA1 Message Date
Wyatt Hepler
1e67862f9d 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).

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>
2022-08-19 18:49:58 +00:00
Michael Spang
a99220e07d Rename duplicate source files
This fixes an error with toolchains that don't include the extension in
the .o filename.

Change-Id: I1fe46d127cade90e6c3d330ee45937c2ea8665eb
2020-06-16 09:51:00 -07:00