Commit Graph

3 Commits

Author SHA1 Message Date
Wyatt Hepler
06f98fcf2b build: Fix missing void parameters in C
Add missing void parameters to several functions. This prepares the code
to apply the -Wstrict-prototypes warning.

Bug: 329
Change-Id: Id5b152e9f8d77d07e99a6e781b3a3c4ef9bd08c0
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/35560
Commit-Queue: Wyatt Hepler <hepler@google.com>
Reviewed-by: Ewout van Bekkum <ewout@google.com>
2021-03-08 19:51:42 +00:00
Ewout van Bekkum
fa1fc6683c targets: use pw_build:extra_strict_warnings upstream
Updates all Pigweed targets, except for arduino, to use the
extra_strict_warnings where relevant.

Also fixes up several places which wouldn't compile with "-Wshadow"
enabled.

Change-Id: Ieb2c7f4870e4609181825e2c894ccbac56135cad
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/21688
Reviewed-by: Armando Montanez <amontanez@google.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
Commit-Queue: Ewout van Bekkum <ewout@google.com>
2020-10-19 19:25:19 +00:00
Wyatt Hepler
24a6e27ca8 pw_log_null: pw_log backend that does nothing
pw_log_null implements pw_log backend using an empty inline function.
This ensures that arguments are checked and evaluated consistently with
a functional pw_log backend.

Change-Id: I65761933c50bba228e2154d2bc4f9636bb069b90
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/17280
Commit-Queue: Wyatt Hepler <hepler@google.com>
Reviewed-by: Keir Mierle <keir@google.com>
2020-09-01 19:41:48 +00:00