]> granicus.if.org Git - nethack/commitdiff
set but not used warning in util/recover.c
authornhmall <nhmall@nethack.org>
Thu, 4 Feb 2021 12:40:55 +0000 (07:40 -0500)
committernhmall <nhmall@nethack.org>
Thu, 4 Feb 2021 12:40:55 +0000 (07:40 -0500)
../util/recover.c:416:9: warning: variable 'bsize' set but not used [-Wunused-but-set-variable]
  416 |     int bsize;
      |         ^~~~~

util/recover.c

index 1edc42f2b9c512a89d94b97864953e7b2dbc9121..63e49ecabc0d01fa52d995ad94485136dc3e3233 100644 (file)
@@ -417,6 +417,7 @@ exepath(char *str)
 
     if (!str)
         return (char *) 0;
+    nhUse(bsize);
     bsize = EXEPATHBUFSZ;
     tmp = exepathbuf;
 #if !defined(WIN32)