summaryrefslogtreecommitdiffstats
path: root/Utilities/cmlibarchive
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-11-04 18:09:59 (GMT)
committerBrad King <brad.king@kitware.com>2009-11-04 18:09:59 (GMT)
commit12baf7b7f18fcc13db5542c116d59bdc056595d8 (patch)
treeac1893e56fca055ccc0df898a2e4e039a7a8313a /Utilities/cmlibarchive
parent60855f620bfa6213802d48784c321011f7882a91 (diff)
downloadCMake-12baf7b7f18fcc13db5542c116d59bdc056595d8.zip
CMake-12baf7b7f18fcc13db5542c116d59bdc056595d8.tar.gz
CMake-12baf7b7f18fcc13db5542c116d59bdc056595d8.tar.bz2
libarchive: Disable Borland warnings
We disable warnings to silence them while making minimal changes to third-party code.
Diffstat (limited to 'Utilities/cmlibarchive')
-rw-r--r--Utilities/cmlibarchive/libarchive/archive_private.h13
-rw-r--r--Utilities/cmlibarchive/libarchive/archive_windows.c1
-rw-r--r--Utilities/cmlibarchive/libarchive/filter_fork_windows.c1
3 files changed, 15 insertions, 0 deletions
diff --git a/Utilities/cmlibarchive/libarchive/archive_private.h b/Utilities/cmlibarchive/libarchive/archive_private.h
index c66cf14..7a023e0 100644
--- a/Utilities/cmlibarchive/libarchive/archive_private.h
+++ b/Utilities/cmlibarchive/libarchive/archive_private.h
@@ -35,6 +35,19 @@
#include "archive.h"
#include "archive_string.h"
+#if defined(__BORLANDC__)
+# pragma warn -8004 /* Assigned value never used. */
+# pragma warn -8008 /* Condition is always true/false. */
+# pragma warn -8012 /* Compare signed/unsigned. */
+# pragma warn -8053 /* Called function is obsolete. */
+# pragma warn -8057 /* Unused parameter. */
+# pragma warn -8060 /* Possibly incorrect assignment. */
+# pragma warn -8065 /* Call to function without prototype. */
+# pragma warn -8066 /* Unreachable code. */
+# pragma warn -8068 /* Constant out of range in comparison. */
+# pragma warn -8072 /* Suspicious pointer arithmetic. */
+#endif
+
#if defined(_MSC_VER)
# pragma warning (push,1)
#endif
diff --git a/Utilities/cmlibarchive/libarchive/archive_windows.c b/Utilities/cmlibarchive/libarchive/archive_windows.c
index a573ac6..65d6116 100644
--- a/Utilities/cmlibarchive/libarchive/archive_windows.c
+++ b/Utilities/cmlibarchive/libarchive/archive_windows.c
@@ -47,6 +47,7 @@
#if defined(_WIN32) && !defined(__CYGWIN__)
#include "archive_platform.h"
+#include "archive_private.h"
#include <ctype.h>
#include <errno.h>
#include <stddef.h>
diff --git a/Utilities/cmlibarchive/libarchive/filter_fork_windows.c b/Utilities/cmlibarchive/libarchive/filter_fork_windows.c
index 3dae4b6..dfee28c 100644
--- a/Utilities/cmlibarchive/libarchive/filter_fork_windows.c
+++ b/Utilities/cmlibarchive/libarchive/filter_fork_windows.c
@@ -24,6 +24,7 @@
*/
#include "archive_platform.h"
+#include "archive_private.h"
#if defined(_WIN32) && !defined(__CYGWIN__)