From 7e90e2e5402f01f59739ae592a91a560c18e251b Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Mon, 28 Mar 2016 17:22:39 -0600 Subject: [PATCH] misc.c compile warning accounts for FIPS --- wolfcrypt/src/misc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wolfcrypt/src/misc.c b/wolfcrypt/src/misc.c index 4a9de4fa0..3498deb53 100644 --- a/wolfcrypt/src/misc.c +++ b/wolfcrypt/src/misc.c @@ -46,7 +46,9 @@ #define STATIC static #endif -#ifndef WOLFSSL_MISC_COMPILED +/* Check for if compiling misc.c when not needed. FIPS build has source code + without preprocessor flag so the warning is not used in a FIPS build. */ +#if !defined(WOLFSSL_MISC_COMPILED) && !defined(HAVE_FIPS) #error misc.c does not need to be compiled when not defined NO_INLINE #endif