From 6a964123a1c1568d8d677d8a53936bba905c553b Mon Sep 17 00:00:00 2001 From: John Safranek Date: Fri, 5 Apr 2019 10:08:41 -0700 Subject: [PATCH] Add a pragma to ignore a particular warning when compiling the fast math file for Windows. --- wolfcrypt/src/tfm.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/wolfcrypt/src/tfm.c b/wolfcrypt/src/tfm.c index 64c10a6b0..bb30e569a 100644 --- a/wolfcrypt/src/tfm.c +++ b/wolfcrypt/src/tfm.c @@ -58,6 +58,14 @@ #include #endif +#ifdef USE_WINDOWS_API + #pragma warning(disable:4127) + /* Disables the warning: + * 4127: conditional expression is constant + * in this file. + */ +#endif + #if defined(WOLFSSL_HAVE_SP_RSA) || defined(WOLFSSL_HAVE_SP_DH) WOLFSSL_LOCAL int sp_ModExp_1024(mp_int* base, mp_int* exp, mp_int* mod, mp_int* res);