testautomation: avoid format related warnings by using a few pragma's

ci: enable -Werror to a few platforms
This commit is contained in:
Anonymous Maarten
2022-10-06 00:31:00 +02:00
committed by Anonymous Maarten
parent d04fa0ef76
commit 274ec02581
5 changed files with 177 additions and 2 deletions

View File

@@ -376,6 +376,11 @@ int platform_testSetErrorEmptyInput(void *arg)
return TEST_COMPLETED;
}
#if defined(HAVE_WFORMAT_OVERFLOW)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wformat-overflow"
#endif
/* !
* \brief Tests SDL_SetError with invalid input
* \sa
@@ -451,7 +456,7 @@ int platform_testSetErrorInvalidInput(void *arg)
probeError,
lastError);
}
/* Clean up */
SDL_ClearError();
SDLTest_AssertPass("SDL_ClearError()");
@@ -459,6 +464,10 @@ int platform_testSetErrorInvalidInput(void *arg)
return TEST_COMPLETED;
}
#if defined(HAVE_WFORMAT_OVERFLOW)
#pragma GCC diagnostic pop
#endif
/* !
* \brief Tests SDL_GetPowerInfo
* \sa