Skip to content

Commit

Permalink
Merge branch 'quiet-vlen-unused-but-set' of https://github.com/entrez…
Browse files Browse the repository at this point in the history
…/NetHack into NetHack-3.7
  • Loading branch information
nhmall committed Jul 16, 2022
2 parents 1b3d2c6 + 0c51767 commit 29afd90
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pline.c
Expand Up @@ -120,6 +120,8 @@ vpline(const char *line, va_list the_args)
if (vlen >= (int) sizeof pbuf)
panic("%s: truncation of buffer at %zu of %d bytes",
"pline", sizeof pbuf, vlen);
#else
nhUse(vlen);
#endif
#else
Vsprintf(pbuf, line, the_args);
Expand Down Expand Up @@ -618,6 +620,8 @@ vconfig_error_add(const char *str, va_list the_args)
if (vlen >= (int) sizeof buf)
panic("%s: truncation of buffer at %zu of %d bytes",
"config_error_add", sizeof buf, vlen);
#else
nhUse(vlen);
#endif
#else
Vsprintf(buf, str, the_args);
Expand Down

0 comments on commit 29afd90

Please sign in to comment.