From 3750ff52059b85a40cb1b469ae6bc206dc7de1ce Mon Sep 17 00:00:00 2001 From: David Garske Date: Tue, 12 Dec 2023 13:22:17 -0800 Subject: [PATCH] Fix for benchmark without filesystem and unused hash_input and cipher_input. --- wolfcrypt/benchmark/benchmark.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wolfcrypt/benchmark/benchmark.c b/wolfcrypt/benchmark/benchmark.c index ab7d3e582..839ebe365 100644 --- a/wolfcrypt/benchmark/benchmark.c +++ b/wolfcrypt/benchmark/benchmark.c @@ -1897,8 +1897,10 @@ static int csv_format = 0; /* globals for cipher tests */ static THREAD_LS_T byte* bench_plain = NULL; static THREAD_LS_T byte* bench_cipher = NULL; +#ifndef NO_FILESYSTEM static THREAD_LS_T char* hash_input = NULL; static THREAD_LS_T char* cipher_input = NULL; +#endif static const XGEN_ALIGN byte bench_key_buf[] = { @@ -12830,6 +12832,7 @@ int wolfcrypt_benchmark_main(int argc, char** argv) if (argc > 1) numBlocks = XATOI(argv[1]); } +#ifndef NO_FILESYSTEM else if (string_matches(argv[1], "-hash_input")) { argc--; argv++; @@ -12842,6 +12845,7 @@ int wolfcrypt_benchmark_main(int argc, char** argv) if (argc > 1) cipher_input = argv[1]; } +#endif #ifdef MULTI_VALUE_STATISTICS else if (string_matches(argv[1], "-min_runs")) { argc--;