SDL_test_harness.c: avoid -Wwrite-strings
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
diff --git a/src/test/SDL_test_harness.c b/src/test/SDL_test_harness.c
index 13216f9..7a1d261 100644
--- a/src/test/SDL_test_harness.c
+++ b/src/test/SDL_test_harness.c
@@ -316,7 +316,7 @@ SDLTest_RunTest(SDLTest_TestSuiteReference *testSuite, const SDLTest_TestCaseRef
}
/* Prints summary of all suites/tests contained in the given reference */
-#if 0
+#if 0
static void SDLTest_LogTestSuiteSummary(SDLTest_TestSuiteReference *testSuites)
{
int suiteCounter;
@@ -377,8 +377,8 @@ int SDLTest_RunSuites(SDLTest_TestSuiteReference *testSuites[], const char *user
SDLTest_TestSuiteReference *testSuite;
const SDLTest_TestCaseReference *testCase;
const char *runSeed = NULL;
- char *currentSuiteName;
- char *currentTestName;
+ const char *currentSuiteName;
+ const char *currentTestName;
Uint64 execKey;
float runStartSeconds;
float suiteStartSeconds;
@@ -388,9 +388,9 @@ int SDLTest_RunSuites(SDLTest_TestSuiteReference *testSuites[], const char *user
float testEndSeconds;
float runtime;
int suiteFilter = 0;
- char *suiteFilterName = NULL;
+ const char *suiteFilterName = NULL;
int testFilter = 0;
- char *testFilterName = NULL;
+ const char *testFilterName = NULL;
SDL_bool forceTestRun = SDL_FALSE;
int testResult = 0;
int runResult = 0;
@@ -419,7 +419,6 @@ int SDLTest_RunSuites(SDLTest_TestSuiteReference *testSuites[], const char *user
runSeed = userRunSeed;
}
-
/* Reset per-run counters */
totalTestFailedCount = 0;
totalTestPassedCount = 0;