forked from wolfSSL/wolfssl
Merge pull request #7060 from dgarske/various_20231212
Fix for benchmark without filesystem unused globals
This commit is contained in:
@ -1897,8 +1897,10 @@ static int csv_format = 0;
|
|||||||
/* globals for cipher tests */
|
/* globals for cipher tests */
|
||||||
static THREAD_LS_T byte* bench_plain = NULL;
|
static THREAD_LS_T byte* bench_plain = NULL;
|
||||||
static THREAD_LS_T byte* bench_cipher = 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* hash_input = NULL;
|
||||||
static THREAD_LS_T char* cipher_input = NULL;
|
static THREAD_LS_T char* cipher_input = NULL;
|
||||||
|
#endif
|
||||||
|
|
||||||
static const XGEN_ALIGN byte bench_key_buf[] =
|
static const XGEN_ALIGN byte bench_key_buf[] =
|
||||||
{
|
{
|
||||||
@ -12830,6 +12832,7 @@ int wolfcrypt_benchmark_main(int argc, char** argv)
|
|||||||
if (argc > 1)
|
if (argc > 1)
|
||||||
numBlocks = XATOI(argv[1]);
|
numBlocks = XATOI(argv[1]);
|
||||||
}
|
}
|
||||||
|
#ifndef NO_FILESYSTEM
|
||||||
else if (string_matches(argv[1], "-hash_input")) {
|
else if (string_matches(argv[1], "-hash_input")) {
|
||||||
argc--;
|
argc--;
|
||||||
argv++;
|
argv++;
|
||||||
@ -12842,6 +12845,7 @@ int wolfcrypt_benchmark_main(int argc, char** argv)
|
|||||||
if (argc > 1)
|
if (argc > 1)
|
||||||
cipher_input = argv[1];
|
cipher_input = argv[1];
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
#ifdef MULTI_VALUE_STATISTICS
|
#ifdef MULTI_VALUE_STATISTICS
|
||||||
else if (string_matches(argv[1], "-min_runs")) {
|
else if (string_matches(argv[1], "-min_runs")) {
|
||||||
argc--;
|
argc--;
|
||||||
|
Reference in New Issue
Block a user