misc.c compile warning accounts for FIPS

This commit is contained in:
Jacob Barthelmeh 2016-03-28 17:22:39 -06:00
parent 2665db73a4
commit 7e90e2e540
1 changed files with 3 additions and 1 deletions

View File

@ -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