Merge pull request #2195 from ejohnstown/vswarn

Fix VS Warning
This commit is contained in:
David Garske
2019-04-05 13:40:24 -07:00
committed by GitHub

View File

@ -58,6 +58,14 @@
#include <stdio.h> #include <stdio.h>
#endif #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) #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, WOLFSSL_LOCAL int sp_ModExp_1024(mp_int* base, mp_int* exp, mp_int* mod,
mp_int* res); mp_int* res);