From 1276d21d8e1cdb841c3aaf0b28086c347e189b38 Mon Sep 17 00:00:00 2001 From: David Garske Date: Wed, 17 Jan 2018 13:27:59 -0800 Subject: [PATCH] Added `WOLFSSL_IGNORE_FILE_WARN` option to ignore warning for `.c` files that do not need to be included. --- src/bio.c | 4 +++- wolfcrypt/src/evp.c | 4 +++- wolfcrypt/src/misc.c | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/bio.c b/src/bio.c index c558f38c8..cf91b218a 100644 --- a/src/bio.c +++ b/src/bio.c @@ -20,7 +20,9 @@ */ #if !defined(WOLFSSL_BIO_INCLUDED) - #warning bio.c does not need to be compiled seperatly from ssl.c + #ifndef WOLFSSL_IGNORE_FILE_WARN + #warning bio.c does not need to be compiled seperatly from ssl.c + #endif #else /*** TBD ***/ diff --git a/wolfcrypt/src/evp.c b/wolfcrypt/src/evp.c index 3d272007b..9e37abfa0 100644 --- a/wolfcrypt/src/evp.c +++ b/wolfcrypt/src/evp.c @@ -20,7 +20,9 @@ */ #if !defined(WOLFSSL_EVP_INCLUDED) - #warning evp.c does not need to be compiled seperatly from ssl.c + #ifndef WOLFSSL_IGNORE_FILE_WARN + #warning evp.c does not need to be compiled seperatly from ssl.c + #endif #else static unsigned int cipherType(const WOLFSSL_EVP_CIPHER *cipher); diff --git a/wolfcrypt/src/misc.c b/wolfcrypt/src/misc.c index 32b2f67aa..601434c9a 100644 --- a/wolfcrypt/src/misc.c +++ b/wolfcrypt/src/misc.c @@ -46,7 +46,9 @@ /* Check for if compiling misc.c when not needed. */ #if !defined(WOLFSSL_MISC_INCLUDED) && !defined(NO_INLINE) - #warning misc.c does not need to be compiled when using inline (NO_INLINE not defined) + #ifndef WOLFSSL_IGNORE_FILE_WARN + #warning misc.c does not need to be compiled when using inline (NO_INLINE not defined) + #endif #else