mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-25 02:52:06 +00:00
Fix incorrect usage of signed verbosity
This commit is contained in:
parent
383a7fe5e1
commit
5d302ff6f4
1 changed files with 3 additions and 3 deletions
|
@ -114,7 +114,7 @@ __warning (expr_t *e, const char *file, int line,
|
||||||
format_message (message, "warning", e, fmt, args);
|
format_message (message, "warning", e, fmt, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (options.verbosity) {
|
if (options.verbosity > 0) {
|
||||||
dasprintf (message, " (%s:%d)", file, line);
|
dasprintf (message, " (%s:%d)", file, line);
|
||||||
}
|
}
|
||||||
if (warning_hook) {
|
if (warning_hook) {
|
||||||
|
@ -208,7 +208,7 @@ _notice (expr_t *e, const char *file, int line, const char *fmt, ...)
|
||||||
report_function (e);
|
report_function (e);
|
||||||
|
|
||||||
format_message (message, "notice", e, fmt, args);
|
format_message (message, "notice", e, fmt, args);
|
||||||
if (options.verbosity) {
|
if (options.verbosity > 0) {
|
||||||
dasprintf (message, " (%s:%d)", file, line);
|
dasprintf (message, " (%s:%d)", file, line);
|
||||||
}
|
}
|
||||||
if (notice_hook) {
|
if (notice_hook) {
|
||||||
|
@ -257,7 +257,7 @@ _error (expr_t *e, const char *file, int line, const char *fmt, ...)
|
||||||
dstring_t *message = dstring_new ();
|
dstring_t *message = dstring_new ();
|
||||||
|
|
||||||
format_message (message, "error", e, fmt, args);
|
format_message (message, "error", e, fmt, args);
|
||||||
if (options.verbosity) {
|
if (options.verbosity > 0) {
|
||||||
dasprintf (message, " (%s:%d)", file, line);
|
dasprintf (message, " (%s:%d)", file, line);
|
||||||
}
|
}
|
||||||
if (error_hook) {
|
if (error_hook) {
|
||||||
|
|
Loading…
Reference in a new issue