From 14bb14c6abf193ab64d4c9f0664296c36cf94739 Mon Sep 17 00:00:00 2001 From: Chris Conlon Date: Wed, 21 Mar 2018 09:41:19 -0600 Subject: [PATCH] fix unused param warning with NO_ERROR_STRINGS --- wolfssl/wolfcrypt/error-crypt.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wolfssl/wolfcrypt/error-crypt.h b/wolfssl/wolfcrypt/error-crypt.h index d2bb664b3..a4bece54e 100644 --- a/wolfssl/wolfcrypt/error-crypt.h +++ b/wolfssl/wolfcrypt/error-crypt.h @@ -216,7 +216,8 @@ enum { #ifdef NO_ERROR_STRINGS #define wc_GetErrorString(error) "no support for error strings built in" #define wc_ErrorString(err, buf) \ - XSTRNCPY((buf), wc_GetErrorString((err)), WOLFSSL_MAX_ERROR_SZ); + (void)err; XSTRNCPY((buf), wc_GetErrorString((err)), \ + WOLFSSL_MAX_ERROR_SZ); #else WOLFSSL_API void wc_ErrorString(int err, char* buff);