Skip to content

Commit 6a3451c

Browse files
committed
wolfcrypt/test/test.c: add WC_MAYBE_UNUSED attribute to declaration of max_relative_stack, to accommodate compilation settings when subsumed within testsuite.
1 parent 7e99ccc commit 6a3451c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

wolfcrypt/test/test.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,10 @@
5858

5959
#ifdef HAVE_STACK_SIZE_VERBOSE
6060
#ifdef WOLFSSL_TEST_MAX_RELATIVE_STACK_BYTES
61-
static ssize_t max_relative_stack = WOLFSSL_TEST_MAX_RELATIVE_STACK_BYTES;
61+
static WC_MAYBE_UNUSED ssize_t max_relative_stack =
62+
WOLFSSL_TEST_MAX_RELATIVE_STACK_BYTES;
6263
#else
63-
static ssize_t max_relative_stack = -1;
64+
static WC_MAYBE_UNUSED ssize_t max_relative_stack = -1;
6465
#endif
6566
#endif
6667

0 commit comments

Comments
 (0)