From 959cc4766596fbf5ad8dd5ea1e0fb6efa67a9233 Mon Sep 17 00:00:00 2001 From: nhmall Date: Thu, 26 Dec 2024 19:55:08 -0500 Subject: [PATCH] set but not used warning in reveal_paths() --- src/files.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/files.c b/src/files.c index 76f7197ee..61a375007 100644 --- a/src/files.c +++ b/src/files.c @@ -4567,7 +4567,9 @@ debugcore(const char *filename, boolean wildcards) void reveal_paths(int code) { +#if defined(SYSCF) boolean skip_sysopt = FALSE; +#endif const char *fqn, *nodumpreason; char buf[BUFSZ]; @@ -4721,6 +4723,7 @@ reveal_paths(int code) } #endif /* ?DUMPLOG */ +#ifdef SYSCF #ifdef WIN32 if (!skip_sysopt) { if (sysopt.portable_device_paths) { @@ -4735,6 +4738,7 @@ reveal_paths(int code) } } } +#endif #endif /* personal configuration file */ @@ -4793,6 +4797,12 @@ reveal_paths(int code) #if defined(WIN32) && !defined(WIN32CON) wait_synch(); #endif +#ifndef DUMPLOG +#ifdef SYSCF + nhUse(skip_sysopt); +#endif + nhUse(nodumpreason); +#endif } /* ---------- BEGIN TRIBUTE ----------- */