Merge branch 'quiet-vlen-unused-but-set' of https://github.com/entrez/NetHack into NetHack-3.7
This commit is contained in:
@@ -120,6 +120,8 @@ vpline(const char *line, va_list the_args)
|
|||||||
if (vlen >= (int) sizeof pbuf)
|
if (vlen >= (int) sizeof pbuf)
|
||||||
panic("%s: truncation of buffer at %zu of %d bytes",
|
panic("%s: truncation of buffer at %zu of %d bytes",
|
||||||
"pline", sizeof pbuf, vlen);
|
"pline", sizeof pbuf, vlen);
|
||||||
|
#else
|
||||||
|
nhUse(vlen);
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
Vsprintf(pbuf, line, the_args);
|
Vsprintf(pbuf, line, the_args);
|
||||||
@@ -618,6 +620,8 @@ vconfig_error_add(const char *str, va_list the_args)
|
|||||||
if (vlen >= (int) sizeof buf)
|
if (vlen >= (int) sizeof buf)
|
||||||
panic("%s: truncation of buffer at %zu of %d bytes",
|
panic("%s: truncation of buffer at %zu of %d bytes",
|
||||||
"config_error_add", sizeof buf, vlen);
|
"config_error_add", sizeof buf, vlen);
|
||||||
|
#else
|
||||||
|
nhUse(vlen);
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
Vsprintf(buf, str, the_args);
|
Vsprintf(buf, str, the_args);
|
||||||
|
|||||||
Reference in New Issue
Block a user