Fix various warnings: static /void / comma

This commit is contained in:
Sylvain
2023-03-06 12:04:59 +01:00
committed by Sylvain Becker
parent c9aec268fa
commit 9b065bf54b
31 changed files with 76 additions and 75 deletions

View File

@@ -104,7 +104,7 @@ void SDLTest_AssertPass(SDL_PRINTF_FORMAT_STRING const char *assertDescription,
/*
* Resets the assert summary counters to zero.
*/
void SDLTest_ResetAssertSummary()
void SDLTest_ResetAssertSummary(void)
{
SDLTest_AssertsPassed = 0;
SDLTest_AssertsFailed = 0;
@@ -114,7 +114,7 @@ void SDLTest_ResetAssertSummary()
* Logs summary of all assertions (total, pass, fail) since last reset
* as INFO (failed==0) or ERROR (failed > 0).
*/
void SDLTest_LogAssertSummary()
void SDLTest_LogAssertSummary(void)
{
int totalAsserts = SDLTest_AssertsPassed + SDLTest_AssertsFailed;
if (SDLTest_AssertsFailed == 0) {
@@ -127,7 +127,7 @@ void SDLTest_LogAssertSummary()
/*
* Converts the current assert state into a test result
*/
int SDLTest_AssertSummaryToTestResult()
int SDLTest_AssertSummaryToTestResult(void)
{
if (SDLTest_AssertsFailed > 0) {
return TEST_RESULT_FAILED;