fix unused param warning with NO_ERROR_STRINGS

This commit is contained in:
Chris Conlon
2018-03-21 09:41:19 -06:00
parent bba0a3e88c
commit 14bb14c6ab

View File

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