Commit 0ad4b0b697149d59f00ebe43289a76b410798552

Ryan C. Gordon 2018-05-21T12:00:21

thread: fixed compiler warnings on non-Linux systems that use pthread. (static function rtkit_setpriority was unused, moved it in with rest of __LINUX__ section.)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/src/thread/pthread/SDL_systhread.c b/src/thread/pthread/SDL_systhread.c
index 28a1a58..ec32937 100644
--- a/src/thread/pthread/SDL_systhread.c
+++ b/src/thread/pthread/SDL_systhread.c
@@ -184,6 +184,7 @@ SDL_ThreadID(void)
     return ((SDL_threadID) pthread_self());
 }
 
+#if __LINUX__
 /* d-bus queries to org.freedesktop.RealtimeKit1. */
 #if SDL_USE_LIBDBUS
 
@@ -237,7 +238,6 @@ rtkit_setpriority(pid_t thread, int nice_level)
 
 #endif /* !SDL_USE_LIBDBUS */
 
-#if __LINUX__
 int
 SDL_LinuxSetThreadPriority(Sint64 threadID, int priority)
 {