Disable unused functions when compiled without threads support, prevents few warnings.
authorLaurent Monin <geeqie@norz.org>
Mon, 6 Apr 2009 22:18:13 +0000 (22:18 +0000)
committerLaurent Monin <geeqie@norz.org>
Mon, 6 Apr 2009 22:18:13 +0000 (22:18 +0000)
src/image-load.c

index 87f8abe..8269fd2 100644 (file)
@@ -779,6 +779,8 @@ static gboolean image_loader_start_idle(ImageLoader *il)
 
 /**************************************************************************************/
 /* execution via thread */
+
+#ifdef HAVE_GTHREAD
 static GThreadPool *image_loader_thread_pool = NULL;
 
 static GCond *image_loader_prio_cond = NULL;
@@ -890,6 +892,7 @@ static gboolean image_loader_start_thread(ImageLoader *il)
                
        return TRUE;
 }
+#endif /* HAVE_GTHREAD */
 
 
 /**************************************************************************************/