mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-15 19:05:32 +00:00
automation_main.c: fix -Wformat-zero-length warning due to SDL_SetError("")
This commit is contained in:
committed by
Anonymous Maarten
parent
be5f55c47e
commit
57c886551f
@@ -125,6 +125,11 @@ static int main_testImpliedJoystickQuit (void *arg)
|
||||
#endif
|
||||
}
|
||||
|
||||
#if defined(__GNUC__) || defined(__clang__)
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wformat-zero-length"
|
||||
#endif
|
||||
|
||||
static int
|
||||
main_testSetError(void *arg)
|
||||
{
|
||||
@@ -145,6 +150,10 @@ main_testSetError(void *arg)
|
||||
return TEST_COMPLETED;
|
||||
}
|
||||
|
||||
#if defined(__GNUC__) || defined(__clang__)
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
static const SDLTest_TestCaseReference mainTest1 =
|
||||
{ (SDLTest_TestCaseFp)main_testInitQuitJoystickHaptic, "main_testInitQuitJoystickHaptic", "Tests SDL_Init/Quit of Joystick and Haptic subsystem", TEST_ENABLED};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user