From 29e6f283cff6e5a28a34cef611538bac316bca6a Mon Sep 17 00:00:00 2001 From: kaleb-himes Date: Tue, 5 Jan 2016 14:19:46 -0700 Subject: [PATCH] Implement peer suggestion --- src/internal.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/internal.c b/src/internal.c index 008a45f1c..cc35f158d 100644 --- a/src/internal.c +++ b/src/internal.c @@ -832,6 +832,9 @@ void InitSuites(Suites* suites, ProtocolVersion pv, word16 haveRSA, tls1_2 = pv.minor <= DTLSv1_2_MINOR; } #endif + /* May be dead assignments dependant upon configuration */ + (void) dtls; + (void) tls; #ifdef HAVE_RENEGOTIATION_INDICATION if (side == WOLFSSL_CLIENT_END) { @@ -1519,11 +1522,6 @@ void InitSuites(Suites* suites, ProtocolVersion pv, word16 haveRSA, } #endif - /* account for unused variable warnings ifdef WOLFSSL_DTLS */ -#ifdef WOLFSSL_DTLS - (void) dtls; - (void) tls; -#endif suites->suiteSz = idx; InitSuitesHashSigAlgo(suites, haveECDSAsig, haveRSAsig, 0);