From 2719943ffdd490b83dad9ce68e6632cdee80e52d Mon Sep 17 00:00:00 2001 From: kaleb-himes Date: Tue, 14 Feb 2023 14:25:57 -0700 Subject: [PATCH] Fix unused variable warning when configuring with --enable-apachehttpd --- src/tls13.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tls13.c b/src/tls13.c index 318f8a11b..a165c970e 100644 --- a/src/tls13.c +++ b/src/tls13.c @@ -5583,6 +5583,10 @@ static int DoPreSharedKeys(WOLFSSL* ssl, const byte* input, word32 inputSz, byte binder[WC_MAX_DIGEST_SIZE]; word32 binderLen; + #ifdef NO_PSK + (void) suite; /* to avoid unused var warning when not used */ + #endif + WOLFSSL_ENTER("DoPreSharedKeys"); ext = TLSX_Find(ssl->extensions, TLSX_PRE_SHARED_KEY);