]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Disable two warnings on Borland C Compiler.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Thu, 17 Dec 2009 13:29:40 +0000 (08:29 -0500)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Thu, 17 Dec 2009 13:29:40 +0000 (08:29 -0500)
 - Constant out of range in comparison(W8068).
 - Suspicious pointer arithmetic(W8072).

SVN-Revision: 1760

libarchive/archive_windows.h

index c4c2a420b47074f6a46d64d6fb9f6ef33c105c84..724f3a0af2a706dd3d5e13b9d4a16a00a4a26b3d 100644 (file)
 /* 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