浏览代码

sha2: Suppress Borland warnings in third-party code

The sha2 implementation performs cleanup on local variables.  Suppress
the warning instead of fixing it to minimize modification.
Brad King 14 年之前
父节点
当前提交
9da8340a6d
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Source/cm_sha2.c

+ 3 - 0
Source/cm_sha2.c

@@ -103,6 +103,9 @@ typedef cm_sha2_uint32_t sha_word32;	/* Exactly 4 bytes */
 typedef cm_sha2_uint64_t sha_word64;	/* Exactly 8 bytes */
 typedef cm_sha2_uint64_t sha_word64;	/* Exactly 8 bytes */
 #define SHA_UINT32_C(x) cmIML_INT_UINT32_C(x)
 #define SHA_UINT32_C(x) cmIML_INT_UINT32_C(x)
 #define SHA_UINT64_C(x) cmIML_INT_UINT64_C(x)
 #define SHA_UINT64_C(x) cmIML_INT_UINT64_C(x)
+#if defined(__BORLANDC__)
+# pragma warn -8004 /* variable assigned value that is never used */
+#endif
 
 
 /*** ENDIAN REVERSAL MACROS *******************************************/
 /*** ENDIAN REVERSAL MACROS *******************************************/
 #if BYTE_ORDER == LITTLE_ENDIAN
 #if BYTE_ORDER == LITTLE_ENDIAN