]> git.tdb.fi Git - builder.git/commitdiff
Additional MSVC fixes
authorMikko Rasa <tdb@tdb.fi>
Wed, 1 Sep 2021 00:18:24 +0000 (03:18 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 1 Sep 2021 00:19:48 +0000 (03:19 +0300)
source/copy.cpp
source/externaltask.cpp
source/gnucompiler.cpp

index 6a2de247c9ac6ba8d6365be128b81252090cc13e..53118de754963dc04095c11be4107a49c0ca9ab2 100644 (file)
@@ -1,5 +1,7 @@
+#ifndef _WIN32
 #include <unistd.h>
 #include <sys/stat.h>
+#endif
 #include <msp/fs/dir.h>
 #include <msp/fs/stat.h>
 #include <msp/fs/utils.h>
index dce0e06d6157700db2efab0ca32a27d5ba26aceb..16d1df096dd4a23eee3f60b2e54a8cf289de9884 100644 (file)
@@ -1,5 +1,4 @@
 #include <cstdlib>
-#include <unistd.h>
 #include <msp/fs/dir.h>
 #include <msp/io/console.h>
 #include <msp/io/file.h>
index 064b0a0f6e1faafc86d778c778afd4e6feae3573..c877ae13a953544ae49633cce7761b3357fd187f 100644 (file)
@@ -150,7 +150,7 @@ void GnuCompiler::prepare_syspath()
                                start = newline+1;
                        }
                }
-               catch(const runtime_error &e)
+               catch(const runtime_error &)
                { }
        }