thread: fixed compiler warnings on non-Linux systems that use pthread.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 21 May 2018 12:00:21 -0400
changeset 119948e094f91ddab
parent 11993 fdf104726ced
child 11995 b34d86386ee1
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.)
src/thread/pthread/SDL_systhread.c
     1.1 --- a/src/thread/pthread/SDL_systhread.c	Mon May 21 11:54:09 2018 -0400
     1.2 +++ b/src/thread/pthread/SDL_systhread.c	Mon May 21 12:00:21 2018 -0400
     1.3 @@ -184,6 +184,7 @@
     1.4      return ((SDL_threadID) pthread_self());
     1.5  }
     1.6  
     1.7 +#if __LINUX__
     1.8  /* d-bus queries to org.freedesktop.RealtimeKit1. */
     1.9  #if SDL_USE_LIBDBUS
    1.10  
    1.11 @@ -237,7 +238,6 @@
    1.12  
    1.13  #endif /* !SDL_USE_LIBDBUS */
    1.14  
    1.15 -#if __LINUX__
    1.16  int
    1.17  SDL_LinuxSetThreadPriority(Sint64 threadID, int priority)
    1.18  {