-Wunused-function on windows
authorRobin Gareus <robin@gareus.org>
Sun, 23 Nov 2014 20:01:06 +0000 (21:01 +0100)
committerRobin Gareus <robin@gareus.org>
Sun, 23 Nov 2014 20:01:39 +0000 (21:01 +0100)
libs/pbd/system_exec.cc

index 123fb909ad4f971ae4a2960e637fb7429bac6982..60e73badfcf19eb567ebe72f91a2a63253608819 100644 (file)
@@ -55,7 +55,10 @@ using namespace std;
 using namespace PBD;
 
 static void * interposer_thread (void *arg);
+
+#ifndef PLATFORM_WINDOWS /* POSIX Process only */
 static void close_fd (int& fd) { if (fd >= 0) ::close (fd); fd = -1; }
+#endif
 
 #if (!defined PLATFORM_WINDOWS && defined NO_VFORK)
 /*