Skip to content

Commit 628787c

Browse files
ColtonWilleyclaude
andcommitted
Fix unused variable warning in wp_seed_src.c
Wrap g_seed_cb_registered declaration in #ifdef WC_RNG_SEED_CB since the variable is only used when that macro is defined. This fixes the -Werror build failure due to unused-variable warning. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 69a298a commit 628787c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/wp_seed_src.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ static XFILE g_urandom_file = XBADFILE;
7171
/*
7272
* Flag indicating whether the seed callback has been registered.
7373
*/
74+
#ifdef WC_RNG_SEED_CB
7475
static int g_seed_cb_registered = 0;
76+
#endif
7577

7678
/**
7779
* wolfSSL seed callback that uses the cached /dev/urandom file.

0 commit comments

Comments
 (0)