From c754d440eaec35b231537a26ee6c6d230c489733 Mon Sep 17 00:00:00 2001 From: Olaf Meeuwissen Date: Sat, 15 Jul 2017 20:27:28 +0900 Subject: [PATCH] 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. --- sanei/sanei_thread.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sanei/sanei_thread.c b/sanei/sanei_thread.c index 3acbbb907..f701423df 100644 --- a/sanei/sanei_thread.c +++ b/sanei/sanei_thread.c @@ -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