diff options
author | Brad King <brad.king@kitware.com> | 2011-11-16 15:54:56 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-11-16 15:54:56 (GMT) |
commit | 9da8340a6d68ec1dce9248d0d83f59ba6f41003e (patch) | |
tree | d77e3942b63b428d21a1c702073037f4f19145ad /Source/cm_sha2.c | |
parent | 23b3df76a069ab314a4828ad651f1a14319ff660 (diff) | |
download | CMake-9da8340a6d68ec1dce9248d0d83f59ba6f41003e.zip CMake-9da8340a6d68ec1dce9248d0d83f59ba6f41003e.tar.gz CMake-9da8340a6d68ec1dce9248d0d83f59ba6f41003e.tar.bz2 |
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.
Diffstat (limited to 'Source/cm_sha2.c')
-rw-r--r-- | Source/cm_sha2.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cm_sha2.c b/Source/cm_sha2.c index c64a597..b89f8fe 100644 --- a/Source/cm_sha2.c +++ b/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 */ #define SHA_UINT32_C(x) cmIML_INT_UINT32_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 *******************************************/ #if BYTE_ORDER == LITTLE_ENDIAN |