Fix incorrect usage of signed verbosity

This commit is contained in:
Bill Currie 2020-02-26 17:13:13 +09:00
parent 383a7fe5e1
commit 5d302ff6f4

View file

@ -114,7 +114,7 @@ __warning (expr_t *e, const char *file, int line,
format_message (message, "warning", e, fmt, args);
}
if (options.verbosity) {
if (options.verbosity > 0) {
dasprintf (message, " (%s:%d)", file, line);
}
if (warning_hook) {
@ -208,7 +208,7 @@ _notice (expr_t *e, const char *file, int line, const char *fmt, ...)
report_function (e);
format_message (message, "notice", e, fmt, args);
if (options.verbosity) {
if (options.verbosity > 0) {
dasprintf (message, " (%s:%d)", file, line);
}
if (notice_hook) {
@ -257,7 +257,7 @@ _error (expr_t *e, const char *file, int line, const char *fmt, ...)
dstring_t *message = dstring_new ();
format_message (message, "error", e, fmt, args);
if (options.verbosity) {
if (options.verbosity > 0) {
dasprintf (message, " (%s:%d)", file, line);
}
if (error_hook) {