From dbcb42e5099dfc3b04e7929010f57083a2aefe19 Mon Sep 17 00:00:00 2001 From: Elms Date: Tue, 1 Dec 2020 08:56:01 -0800 Subject: [PATCH] SiLabs: fix unused variable #if --- wolfcrypt/src/ecc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wolfcrypt/src/ecc.c b/wolfcrypt/src/ecc.c index 792548811..bf1d6b7cb 100644 --- a/wolfcrypt/src/ecc.c +++ b/wolfcrypt/src/ecc.c @@ -8134,8 +8134,9 @@ static int wc_ecc_import_raw_private(ecc_key* key, const char* qx, byte key_raw[ECC_MAX_CRYPTO_HW_SIZE*2 + 1]; #endif -#if defined(WOLFSSL_CRYPTOCELL) || defined(WOLFSSL_ATECC508A) || \ - !defined(WOLFSSL_ATECC608A) || defined(WOLFSSL_SILABS_SE_ACCEL) +#if (defined(WOLFSSL_CRYPTOCELL) && !defined(WOLFSSL_ATECC508A) && \ + !defined(WOLFSSL_ATECC608A)) || \ + defined(WOLFSSL_SILABS_SE_ACCEL) word32 keySz = 0; #endif