libarchive: Disable Borland warnings
We disable warnings to silence them while making minimal changes to third-party code.
This commit is contained in:
parent
60855f620b
commit
12baf7b7f1
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
*/
|
||||
|
||||
#include "archive_platform.h"
|
||||
#include "archive_private.h"
|
||||
|
||||
#if defined(_WIN32) && !defined(__CYGWIN__)
|
||||
|
||||
|
|
Loading…
Reference in New Issue