Browse Source

libarchive: Disable MSVC warnings

We disable warnings to silence them while making minimal changes to
third-party code.
Brad King 16 years ago
parent
commit
ccd831c559
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Utilities/cmlibarchive/libarchive/archive_private.h

+ 4 - 0
Utilities/cmlibarchive/libarchive/archive_private.h

@@ -35,6 +35,10 @@
 #include "archive.h"
 #include "archive_string.h"
 
+#if defined(_MSC_VER)
+# pragma warning (push,1)
+#endif
+
 #if defined(__GNUC__) && (__GNUC__ > 2 || \
               (__GNUC__ == 2 && __GNUC_MINOR__ >= 5))
 #define __LA_DEAD   __attribute__((__noreturn__))