wolfcrypt/test/test.c: add WC_MAYBE_UNUSED attribute to declaration of max_relative_stack, to accommodate compilation settings when subsumed within testsuite.

pull/6973/head
Daniel Pouzzner 2023-11-14 17:37:49 -06:00
parent 7e99ccc782
commit 6a3451ca54
1 changed files with 3 additions and 2 deletions

View File

@ -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