libarchive: Disable Borland warnings

We disable warnings to silence them while making minimal changes to
third-party code.
This commit is contained in:
Brad King 2009-11-04 13:09:59 -05:00
parent 60855f620b
commit 12baf7b7f1
3 changed files with 15 additions and 0 deletions

View File

@ -35,6 +35,19 @@
#include "archive.h" #include "archive.h"
#include "archive_string.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) #if defined(_MSC_VER)
# pragma warning (push,1) # pragma warning (push,1)
#endif #endif

View File

@ -47,6 +47,7 @@
#if defined(_WIN32) && !defined(__CYGWIN__) #if defined(_WIN32) && !defined(__CYGWIN__)
#include "archive_platform.h" #include "archive_platform.h"
#include "archive_private.h"
#include <ctype.h> #include <ctype.h>
#include <errno.h> #include <errno.h>
#include <stddef.h> #include <stddef.h>

View File

@ -24,6 +24,7 @@
*/ */
#include "archive_platform.h" #include "archive_platform.h"
#include "archive_private.h"
#if defined(_WIN32) && !defined(__CYGWIN__) #if defined(_WIN32) && !defined(__CYGWIN__)