Commit Graph

4 Commits

Author SHA1 Message Date
Wyatt Hepler
63afc007a3 pw_preprocessor: Remove uses of the PW_UNUSED macro
- PW_UNUSED provides no value over the [[maybe_unused]] C++ attribute or
  a simple void cast. Replace uses of it and mark the macro as
  deprecated.
- Add a section to the Embedded C++ Guide about compiler warnings,
  including how to silence -Wunused-* warnings.

Change-Id: I078be670465ed87733f7c6d1f3d327915a0f49f6
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/32122
Commit-Queue: Wyatt Hepler <hepler@google.com>
Reviewed-by: Keir Mierle <keir@google.com>
2021-02-24 21:44:55 +00:00
Michael Spang
ce7b9451f7 pw_preprocessor: Reduce util_test.cc stack usage
This fixes a warning if compiling with -Wframe-larger-than=N for N <
6622896.

Change-Id: Ica3b5418c60570c11d411805e3d4c6efac8ab7e9
2020-06-16 09:59:34 -07:00
Wyatt Hepler
1a96094ce6 Fix copyright notices
- Add missing copright header in conf.py.
- Fix inconsistent copyright notice line breaking.

Change-Id: Ib78f7768643069c49ff986a48a176df9fd06e891
2019-11-27 22:34:02 +00:00
Alexei Frolov
c10c81201d Add preprocessor and unit_test modules
This change adds two Pigweed modules: pw_preprocessor and pw_unit_test.
The preprocessor module contains header files providing helpful macros
for the C preprocessor. The unit test module contains a starter
implementation of a unit testing framework for Pigweed.

Change-Id: I46e1a4cae1fd8ce36d7840a2e92f8013fb489cde
2019-11-04 16:07:34 -08:00