mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-20 06:21:09 +00:00
N3DS: Fix -Wformat warnings in tests.
All warnings were about invalid specifiers. Since U/Sint32 is a long, using `%d` emits a -Wformat warning.
This commit is contained in:
committed by
Sam Lantinga
parent
43a2b0b1e5
commit
6784d84c9d
@@ -79,7 +79,7 @@ main(int argc, char *argv[])
|
||||
{
|
||||
joystick = SDL_JoystickOpen(event.jdevice.which);
|
||||
instance = SDL_JoystickInstanceID(joystick);
|
||||
SDL_Log("Joy Added : %d : %s\n", event.jdevice.which, SDL_JoystickName(joystick));
|
||||
SDL_Log("Joy Added : %" SDL_PRIs32 " : %s\n", event.jdevice.which, SDL_JoystickName(joystick));
|
||||
if (enable_haptic)
|
||||
{
|
||||
if (SDL_JoystickIsHaptic(joystick))
|
||||
@@ -108,7 +108,7 @@ main(int argc, char *argv[])
|
||||
case SDL_JOYDEVICEREMOVED:
|
||||
if (instance == event.jdevice.which)
|
||||
{
|
||||
SDL_Log("Joy Removed: %d\n", event.jdevice.which);
|
||||
SDL_Log("Joy Removed: %" SDL_PRIs32 "\n", event.jdevice.which);
|
||||
instance = -1;
|
||||
if(enable_haptic && haptic)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user