From 26bb86690aa0f49d9e55377083ee6ab184197edc Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Wed, 21 Mar 2018 10:06:06 -0600 Subject: [PATCH] fix for unused parameter warning --- src/internal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/internal.c b/src/internal.c index 20cbe2212..e1e8f2bac 100644 --- a/src/internal.c +++ b/src/internal.c @@ -1824,6 +1824,8 @@ void InitSuites(Suites* suites, ProtocolVersion pv, int keySz, word16 haveRSA, (void)haveStaticECC; (void)haveECC; (void)side; + (void)haveRSA; /* some builds won't read */ + (void)haveRSAsig; /* non ecc builds won't read */ if (suites == NULL) { WOLFSSL_MSG("InitSuites pointer error"); @@ -1836,12 +1838,10 @@ void InitSuites(Suites* suites, ProtocolVersion pv, int keySz, word16 haveRSA, #ifndef NO_WOLFSSL_SERVER if (side == WOLFSSL_SERVER_END && haveStaticECC) { haveRSA = 0; /* can't do RSA with ECDSA key */ - (void)haveRSA; /* some builds won't read */ } if (side == WOLFSSL_SERVER_END && haveECDSAsig) { haveRSAsig = 0; /* can't have RSA sig if signed by ECDSA */ - (void)haveRSAsig; /* non ecc builds won't read */ } #endif /* !NO_WOLFSSL_SERVER */