diff options
author | Sebastian Pipping <sebastian@pipping.org> | 2022-09-15 01:00:43 +0200 |
---|---|---|
committer | Sebastian Pipping <sebastian@pipping.org> | 2022-09-15 01:12:37 +0200 |
commit | d88c9510e2a529285435e4196ae4f5c3b1d390f9 (patch) | |
tree | 2f515c15b2bffdd5de561fc80958eea4b7c06a40 /expat | |
parent | a976e32abd257728a51dc55cf3d4ebee5b853459 (diff) | |
download | libexpat-git-d88c9510e2a529285435e4196ae4f5c3b1d390f9.tar.gz |
tests: Address Clang 15 warning -Wstrict-prototypes
Symptom was:
error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
Diffstat (limited to 'expat')
-rw-r--r-- | expat/Changes | 1 | ||||
-rw-r--r-- | expat/tests/runtests.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/expat/Changes b/expat/Changes index ccfdbc19..e866df45 100644 --- a/expat/Changes +++ b/expat/Changes @@ -35,6 +35,7 @@ Release x.x.x xxx xxxxx xx xxxx #626 #641 Stop exporting API symbols when building a static library #620 CMake: Make documentation on variables a bit more consistent #610 Address Cppcheck 2.8.1 warning + #643 Address Clang 15 compiler warnings Infrastructure: #597 #598 CI: Windows: Start covering MSVC 2022 diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c index ab3aff65..9a1dc934 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -11836,12 +11836,12 @@ START_TEST(test_accounting_precision) { END_TEST static float -portableNAN() { +portableNAN(void) { return strtof("nan", NULL); } static float -portableINFINITY() { +portableINFINITY(void) { return strtof("infinity", NULL); } |