From 6a3451ca54d2ab47de42ef30dde10fecbb3507bb Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Tue, 14 Nov 2023 17:37:49 -0600 Subject: [PATCH] wolfcrypt/test/test.c: add WC_MAYBE_UNUSED attribute to declaration of max_relative_stack, to accommodate compilation settings when subsumed within testsuite. --- wolfcrypt/test/test.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index bfbb81875..791e5ca7d 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -58,9 +58,10 @@ #ifdef HAVE_STACK_SIZE_VERBOSE #ifdef WOLFSSL_TEST_MAX_RELATIVE_STACK_BYTES - static ssize_t max_relative_stack = WOLFSSL_TEST_MAX_RELATIVE_STACK_BYTES; + static WC_MAYBE_UNUSED ssize_t max_relative_stack = + WOLFSSL_TEST_MAX_RELATIVE_STACK_BYTES; #else - static ssize_t max_relative_stack = -1; + static WC_MAYBE_UNUSED ssize_t max_relative_stack = -1; #endif #endif