summaryrefslogtreecommitdiff
path: root/sha.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2015-06-09 11:33:32 -0400
committerJeffrey Walton <noloader@gmail.com>2015-06-09 11:33:32 -0400
commitd7399e0fd799dbe365e57333d668835342b21468 (patch)
treed3512db9c14bcc5df916e79300bdf22ed84e19ac /sha.cpp
parent44015c26ba215f955b1e653f9c8f3c894a532707 (diff)
downloadcryptopp-git-d7399e0fd799dbe365e57333d668835342b21468.tar.gz
Cleared GCC/Clang warning on unknown pragma
Diffstat (limited to 'sha.cpp')
-rw-r--r--sha.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/sha.cpp b/sha.cpp
index df947ad1..153fc00b 100644
--- a/sha.cpp
+++ b/sha.cpp
@@ -123,7 +123,9 @@ extern const word32 SHA256_K[64] = {
#if defined(CRYPTOPP_X86_ASM_AVAILABLE) || defined(CRYPTOPP_GENERATE_X64_MASM)
-#pragma warning(disable: 4731) // frame pointer register 'ebp' modified by inline assembly code
+#ifdef _MSC_VER
+# pragma warning(disable: 4731) // frame pointer register 'ebp' modified by inline assembly code
+#endif
static void CRYPTOPP_FASTCALL X86_SHA256_HashBlocks(word32 *state, const word32 *data, size_t len
#if defined(_MSC_VER) && (_MSC_VER == 1200)