Skip to content

compiler warnings for unused variables in wolfssl/wolfcrypt/src/random.c #10499

@escherstair

Description

@escherstair

Under some combinations of compiler defines, variables seed and seedSz here

wolfssl/wolfcrypt/src/random.c

Lines 1722 to 1723 in 145a4fa

word32 seedSz = SEED_SZ + SEED_BLOCK_SZ;
WC_DECLARE_VAR(seed, byte, MAX_SEED_SZ, rng->heap);

could be defined but not used.

I'm not 100% sure but this can be when CUSTOM_RAND_GENERATE_BLOCK is defined and so this path is taken

wolfssl/wolfcrypt/src/random.c

Lines 1850 to 1852 in 145a4fa

#ifdef CUSTOM_RAND_GENERATE_BLOCK
ret = 0; /* success */
#else

I found this warning while testing https://github.com/danielinux/m33mu with its default configs

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions