From 2fa682e6992e9b3046e85ea84c9f0dd4ecf5e9d8 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Mon, 8 Jun 2015 03:49:39 -0400 Subject: [PATCH] Cleared GCC/Clang waning on unknown pragma --- gcm.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gcm.cpp b/gcm.cpp index 237325d9..8a2c2c56 100644 --- a/gcm.cpp +++ b/gcm.cpp @@ -334,7 +334,9 @@ unsigned int GCM_Base::OptimalDataAlignment() const GetBlockCipher().OptimalDataAlignment(); } -#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 #endif // #ifndef CRYPTOPP_GENERATE_X64_MASM