Various OSX warnings fixes.
[dcpomatic.git] / src / lib / encode_server.cc
index 61e0b09c58f1a340460791c02c7ead7aef417b8a..c30fc8f30323ae52682682e2332c9fcb0e09300a 100644 (file)
@@ -239,9 +239,11 @@ EncodeServer::run ()
        }
 
        for (int i = 0; i < _num_threads; ++i) {
-               boost::thread* t = _worker_threads.create_thread (bind(&EncodeServer::worker_thread, this));
 #ifdef DCPOMATIC_LINUX
+               boost::thread* t = _worker_threads.create_thread (bind(&EncodeServer::worker_thread, this));
                pthread_setname_np (t->native_handle(), "encode-server-worker");
+#else
+               _worker_threads.create_thread (bind(&EncodeServer::worker_thread, this));
 #endif
        }