From 0b42f3ae72b74447df963ff91ea943c998391d46 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Thu, 10 Dec 2020 20:11:23 -0600 Subject: [PATCH] wolfcrypt/src/dsa.c: disable MSVC warning C4127 (compiler bug) as in wolfcrypt/src/tfm.c and src/internal.c. --- wolfcrypt/src/dsa.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wolfcrypt/src/dsa.c b/wolfcrypt/src/dsa.c index 9b3ec48fa..f62cec92d 100644 --- a/wolfcrypt/src/dsa.c +++ b/wolfcrypt/src/dsa.c @@ -42,6 +42,11 @@ #include #endif +#ifdef _MSC_VER + /* disable for while(0) cases (MSVC bug) */ + #pragma warning(disable:4127) +#endif + int wc_InitDsaKey(DsaKey* key) { if (key == NULL)