From a8024a32c5a6bc529a00594a5d37ed27b8ee2e80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Liebscher?= Date: Fri, 20 May 2022 16:05:10 +0200 Subject: [PATCH] Remove unused warning in ecc.c When WOLFSSL_ECIES_OLD is defined you get an unused warning in ecc.c / wc_ecc_encrypt_ex(). Just suppress it by "using" the parameter. --- wolfcrypt/src/ecc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wolfcrypt/src/ecc.c b/wolfcrypt/src/ecc.c index 777c28452..ba9f6a87d 100644 --- a/wolfcrypt/src/ecc.c +++ b/wolfcrypt/src/ecc.c @@ -12504,6 +12504,8 @@ int wc_ecc_encrypt_ex(ecc_key* privKey, ecc_key* pubKey, const byte* msg, else { pubKeySz = 1 + wc_ecc_size(privKey); } +#else + (void) compressed; /* avoid unused parameter if WOLFSSL_ECIES_OLD is defined */ #endif if (ctx->protocol == REQ_RESP_SERVER) {