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 authored and Anonymous Maarten committed 2022-10-08 23:41:07 +02:00
1 parent d04fa0ef76
commit 274ec02581
5 files changed
+177 -2

No files matched your search

+10 -1
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