From: Michihiro NAKAJIMA Date: Thu, 17 Dec 2009 13:29:40 +0000 (-0500) Subject: Disable two warnings on Borland C Compiler. X-Git-Tag: v2.8.0~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29be90dd93563429d29a6727e2ddbf7268d55977;p=thirdparty%2Flibarchive.git Disable two warnings on Borland C Compiler. - Constant out of range in comparison(W8068). - Suspicious pointer arithmetic(W8072). SVN-Revision: 1760 --- diff --git a/libarchive/archive_windows.h b/libarchive/archive_windows.h index c4c2a420b..724f3a0af 100644 --- a/libarchive/archive_windows.h +++ b/libarchive/archive_windows.h @@ -80,6 +80,10 @@ /* TODO: Fix the code, don't suppress the warnings. */ #pragma warning(disable:4244) /* 'conversion' conversion from 'type1' to 'type2', possible loss of data */ #endif +#if defined(__BORLANDC__) +#pragma warn -8068 /* Constant out of range in comparison. */ +#pragma warn -8072 /* Suspicious pointer arithmetic. */ +#endif #ifndef NULL #ifdef __cplusplus