From 6c6d8afb8f5fd479ff798a05e13874fe7b03b110 Mon Sep 17 00:00:00 2001 From: nhmall Date: Mon, 2 Jun 2025 22:37:48 -0400 Subject: [PATCH] fix a warning during sfctool build --- src/restore.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/restore.c b/src/restore.c index 086f21d99..bf2376c4e 100644 --- a/src/restore.c +++ b/src/restore.c @@ -1385,7 +1385,9 @@ void restore_msghistory(NHFILE *nhfp) { int msgsize = 0; +#ifndef SFCTOOL int msgcount = 0; +#endif char msg[BUFSZ]; while (1) { @@ -1398,8 +1400,8 @@ restore_msghistory(NHFILE *nhfp) msg[msgsize] = '\0'; #ifndef SFCTOOL putmsghistory(msg, TRUE); -#endif /* !SFCTOOL */ ++msgcount; +#endif /* !SFCTOOL */ } #ifndef SFCTOOL if (msgcount)