SDL_test_harness.c: avoid -Wwrite-strings

This commit is contained in:
Ozkan Sezer 2021-11-14 02:31:20 +03:00
parent be7b663c2c
commit c7aa04d03e
1 changed files with 5 additions and 6 deletions

View File

@ -316,7 +316,7 @@ SDLTest_RunTest(SDLTest_TestSuiteReference *testSuite, const SDLTest_TestCaseRef
} }
/* Prints summary of all suites/tests contained in the given reference */ /* Prints summary of all suites/tests contained in the given reference */
#if 0 #if 0
static void SDLTest_LogTestSuiteSummary(SDLTest_TestSuiteReference *testSuites) static void SDLTest_LogTestSuiteSummary(SDLTest_TestSuiteReference *testSuites)
{ {
int suiteCounter; int suiteCounter;
@ -377,8 +377,8 @@ int SDLTest_RunSuites(SDLTest_TestSuiteReference *testSuites[], const char *user
SDLTest_TestSuiteReference *testSuite; SDLTest_TestSuiteReference *testSuite;
const SDLTest_TestCaseReference *testCase; const SDLTest_TestCaseReference *testCase;
const char *runSeed = NULL; const char *runSeed = NULL;
char *currentSuiteName; const char *currentSuiteName;
char *currentTestName; const char *currentTestName;
Uint64 execKey; Uint64 execKey;
float runStartSeconds; float runStartSeconds;
float suiteStartSeconds; float suiteStartSeconds;
@ -388,9 +388,9 @@ int SDLTest_RunSuites(SDLTest_TestSuiteReference *testSuites[], const char *user
float testEndSeconds; float testEndSeconds;
float runtime; float runtime;
int suiteFilter = 0; int suiteFilter = 0;
char *suiteFilterName = NULL; const char *suiteFilterName = NULL;
int testFilter = 0; int testFilter = 0;
char *testFilterName = NULL; const char *testFilterName = NULL;
SDL_bool forceTestRun = SDL_FALSE; SDL_bool forceTestRun = SDL_FALSE;
int testResult = 0; int testResult = 0;
int runResult = 0; int runResult = 0;
@ -419,7 +419,6 @@ int SDLTest_RunSuites(SDLTest_TestSuiteReference *testSuites[], const char *user
runSeed = userRunSeed; runSeed = userRunSeed;
} }
/* Reset per-run counters */ /* Reset per-run counters */
totalTestFailedCount = 0; totalTestFailedCount = 0;
totalTestPassedCount = 0; totalTestPassedCount = 0;