Skip to content

Commit 3d959b9

Browse files
authored
Merge pull request #7060 from dgarske/various_20231212
Fix for benchmark without filesystem unused globals
2 parents 56c7e5c + 3750ff5 commit 3d959b9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

wolfcrypt/benchmark/benchmark.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1897,8 +1897,10 @@ static int csv_format = 0;
18971897
/* globals for cipher tests */
18981898
static THREAD_LS_T byte* bench_plain = NULL;
18991899
static THREAD_LS_T byte* bench_cipher = NULL;
1900+
#ifndef NO_FILESYSTEM
19001901
static THREAD_LS_T char* hash_input = NULL;
19011902
static THREAD_LS_T char* cipher_input = NULL;
1903+
#endif
19021904

19031905
static const XGEN_ALIGN byte bench_key_buf[] =
19041906
{
@@ -12830,6 +12832,7 @@ int wolfcrypt_benchmark_main(int argc, char** argv)
1283012832
if (argc > 1)
1283112833
numBlocks = XATOI(argv[1]);
1283212834
}
12835+
#ifndef NO_FILESYSTEM
1283312836
else if (string_matches(argv[1], "-hash_input")) {
1283412837
argc--;
1283512838
argv++;
@@ -12842,6 +12845,7 @@ int wolfcrypt_benchmark_main(int argc, char** argv)
1284212845
if (argc > 1)
1284312846
cipher_input = argv[1];
1284412847
}
12848+
#endif
1284512849
#ifdef MULTI_VALUE_STATISTICS
1284612850
else if (string_matches(argv[1], "-min_runs")) {
1284712851
argc--;

0 commit comments

Comments
 (0)