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.
This commit is contained in:
René Liebscher
2022-05-20 16:05:10 +02:00
parent 9427ebc5be
commit a8024a32c5

View File

@ -12504,6 +12504,8 @@ int wc_ecc_encrypt_ex(ecc_key* privKey, ecc_key* pubKey, const byte* msg,
else { else {
pubKeySz = 1 + wc_ecc_size(privKey); pubKeySz = 1 + wc_ecc_size(privKey);
} }
#else
(void) compressed; /* avoid unused parameter if WOLFSSL_ECIES_OLD is defined */
#endif #endif
if (ctx->protocol == REQ_RESP_SERVER) { if (ctx->protocol == REQ_RESP_SERVER) {