From dd469bb67d4b8a0c9b415fc14fa9381edefd1621 Mon Sep 17 00:00:00 2001 From: kaleb-himes Date: Mon, 4 Jan 2016 15:03:39 -0700 Subject: [PATCH] avoid unused variable warnings --- src/internal.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/internal.c b/src/internal.c index 2a8c6b7da..008a45f1c 100644 --- a/src/internal.c +++ b/src/internal.c @@ -1519,6 +1519,11 @@ 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); @@ -15438,7 +15443,7 @@ int DoSessionTicket(WOLFSSL* ssl, #error "DTLS needs either SHA or SHA-256" #endif /* NO_SHA && NO_SHA256 */ - #ifndef NO_SHA + #if !defined(NO_SHA) && defined(NO_SHA256) cookieType = SHA; cookieSz = SHA_DIGEST_SIZE; #endif /* NO_SHA */