Skip to content

Commit

Permalink
thread: fixed compiler warnings on non-Linux systems that use pthread.
Browse files Browse the repository at this point in the history
(static function rtkit_setpriority was unused, moved it in with rest of
__LINUX__ section.)
  • Loading branch information
icculus committed May 21, 2018
1 parent 4988186 commit 0ad4b0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/thread/pthread/SDL_systhread.c
Expand Up @@ -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

Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit 0ad4b0b

Please sign in to comment.