From 96cb52f21a4bc0c7ee8552833ac129c4d8a0c54e Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sat, 7 Mar 2026 13:18:54 +0000 Subject: util/nvmutil: only have newrandom on linux/oldunix these variables newrandom and oldrandom are unused on BSD systems, and their unused status may trigger warnings on some compilers. Signed-off-by: Leah Rowe --- util/nvmutil/nvmutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index b6e28cfa..3a374e6c 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -113,9 +113,9 @@ static void set_err(int errval); */ #define items(x) (sizeof((x)) / sizeof((x)[0])) +#ifndef HAVE_ARC4RANDOM_BUF static const char newrandom[] = "/dev/urandom"; static const char oldrandom[] = "/dev/random"; /* fallback on OLD unix */ -#ifndef HAVE_ARC4RANDOM_BUF static const char *rname = NULL; #endif -- cgit v1.2.1