Fix warning drop const qualifier

This commit is contained in:
Sylvain
2023-03-08 21:18:02 +01:00
committed by Sylvain Becker
parent ba87b96cea
commit 4053876bf6
6 changed files with 69 additions and 69 deletions

View File

@@ -387,9 +387,9 @@ static int video_getWindowDisplayMode(void *arg)
static void checkInvalidWindowError(void)
{
const char *invalidWindowError = "Invalid window";
char *lastError;
const char *lastError;
lastError = (char *)SDL_GetError();
lastError = SDL_GetError();
SDLTest_AssertPass("SDL_GetError()");
SDLTest_AssertCheck(lastError != NULL, "Verify error message is not NULL");
if (lastError != NULL) {
@@ -856,9 +856,9 @@ static int video_getSetWindowPosition(void *arg)
static void checkInvalidParameterError(void)
{
const char *invalidParameterError = "Parameter";
char *lastError;
const char *lastError;
lastError = (char *)SDL_GetError();
lastError = SDL_GetError();
SDLTest_AssertPass("SDL_GetError()");
SDLTest_AssertCheck(lastError != NULL, "Verify error message is not NULL");
if (lastError != NULL) {