kopia lustrzana https://gitlab.com/sane-project/backends
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
rodzic
f333450086
commit
c754d440ea
|
@ -115,6 +115,7 @@ sanei_thread_is_forked( void )
|
||||||
|
|
||||||
/* Use this to mark a SANE_Pid as invaild instead of marking with -1.
|
/* Use this to mark a SANE_Pid as invaild instead of marking with -1.
|
||||||
*/
|
*/
|
||||||
|
#ifdef USE_PTHREAD
|
||||||
static void
|
static void
|
||||||
sanei_thread_set_invalid( SANE_Pid *pid )
|
sanei_thread_set_invalid( SANE_Pid *pid )
|
||||||
{
|
{
|
||||||
|
@ -129,6 +130,7 @@ sanei_thread_set_invalid( SANE_Pid *pid )
|
||||||
*pid = (pthread_t) -1;
|
*pid = (pthread_t) -1;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Return if PID is a valid PID or not. */
|
/* Return if PID is a valid PID or not. */
|
||||||
SANE_Bool
|
SANE_Bool
|
||||||
|
|
Ładowanie…
Reference in New Issue