sanei_thread: Fix [-Wunused-function] compiler warning

The sanei_thread_set_invalid static function is only used by code that
exists if USE_PTHREAD is defined.
merge-requests/1/head
Olaf Meeuwissen 2017-07-15 20:27:28 +09:00
rodzic f333450086
commit c754d440ea
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -115,6 +115,7 @@ sanei_thread_is_forked( void )
/* Use this to mark a SANE_Pid as invaild instead of marking with -1.
*/
#ifdef USE_PTHREAD
static void
sanei_thread_set_invalid( SANE_Pid *pid )
{
@ -129,6 +130,7 @@ sanei_thread_set_invalid( SANE_Pid *pid )
*pid = (pthread_t) -1;
#endif
}
#endif
/* Return if PID is a valid PID or not. */
SANE_Bool