fix a warning during sfctool build

This commit is contained in:
nhmall
2025-06-02 22:37:48 -04:00
parent cb12423a2e
commit 6c6d8afb8f

View File

@@ -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)