Commit c77aaa5d996e4c396641135128e620d294528a84

Sam Lantinga 2023-06-12T15:39:57

Fixed n3ds build (cherry picked from commit d95dbe78bb7a5087ecfb8d301417b1108d868738)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/src/joystick/SDL_joystick.c b/src/joystick/SDL_joystick.c
index 02d7edd..8bdf952 100644
--- a/src/joystick/SDL_joystick.c
+++ b/src/joystick/SDL_joystick.c
@@ -144,9 +144,9 @@ SDL_bool SDL_JoysticksQuitting(void)
 
 void SDL_LockJoysticks(void)
 {
-    SDL_AtomicIncRef(&SDL_joystick_lock_pending);
+    (void)SDL_AtomicIncRef(&SDL_joystick_lock_pending);
     SDL_LockMutex(SDL_joystick_lock);
-    SDL_AtomicDecRef(&SDL_joystick_lock_pending);
+    (void)SDL_AtomicDecRef(&SDL_joystick_lock_pending);
 
     ++SDL_joysticks_locked;
 }