diff options
author | Wyatt Hepler <hepler@google.com> | 2021-03-04 16:25:27 -0800 |
---|---|---|
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2021-03-08 19:51:42 +0000 |
commit | 06f98fcf2b3aff732eba19750b2e4edf252161aa (patch) | |
tree | 5bfe08f67338bc1c572b05d2b736a0cf2cab4c07 /pw_assert | |
parent | e287767d596d5a19b27e79985a0fa1e413769694 (diff) | |
download | pigweed-06f98fcf2b3aff732eba19750b2e4edf252161aa.tar.gz |
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>
Diffstat (limited to 'pw_assert')
-rw-r--r-- | pw_assert/assert_backend_compile_test_c.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pw_assert/assert_backend_compile_test_c.c b/pw_assert/assert_backend_compile_test_c.c index c602f37de..a4aaced39 100644 --- a/pw_assert/assert_backend_compile_test_c.c +++ b/pw_assert/assert_backend_compile_test_c.c @@ -25,7 +25,7 @@ #include "pw_assert/assert.h" -static void EnsureNullIsIncluded() { +static void EnsureNullIsIncluded(void) { // This is a compile check to ensure NULL is defined. It comes before the // status.h include to ensure we don't accidentally get NULL from status.h. PW_CHECK_NOTNULL(0xa); @@ -64,7 +64,7 @@ static const int z = 10; static int Add3(int a, int b, int c) { return a + b + c; } -void AssertBackendCompileTestsInC() { +void AssertBackendCompileTestsInC(void) { { // TEST(Crash, WithAndWithoutMessageArguments) MAYBE_SKIP_TEST; PW_CRASH(FAIL_IF_HIDDEN); |