testautomation: avoid format related warnings by using a few pragma's
ci: enable -Werror to a few platforms
This commit is contained in:
committed by
Anonymous Maarten
parent
d04fa0ef76
commit
274ec02581
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user