From 743e3988dcf6c63403cfbdf3b824166542ccbb15 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Thu, 20 Dec 2018 12:29:48 +0100 Subject: [PATCH] Avoid unused-variable warnings for str as well The exact guard is FS_IO && PK_PARSE_C. Just keep it simple. --- tests/suites/test_suite_pk.function | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/suites/test_suite_pk.function b/tests/suites/test_suite_pk.function index 231a74d63..4e6ab172c 100644 --- a/tests/suites/test_suite_pk.function +++ b/tests/suites/test_suite_pk.function @@ -200,15 +200,14 @@ void invalid_parameters( ) unsigned char *null_buf = NULL; unsigned char buf[1]; unsigned char *p = buf; -#if defined(MBEDTLS_FS_IO) char str[1] = {0}; -#endif mbedtls_pk_context pk; mbedtls_md_type_t valid_md = MBEDTLS_MD_SHA256; void *options = buf; (void) null_buf; (void) p; + (void) str; mbedtls_pk_init( &pk );