Add a pragma to ignore a particular warning when compiling the fast math file for Windows.

This commit is contained in:
John Safranek
2019-04-05 10:08:41 -07:00
parent 9c3cb2fbba
commit 6a964123a1

View File

@@ -58,6 +58,14 @@
#include <stdio.h>
#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);