diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | gawkapi.c | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,9 @@ +2020-10-12 Arnold D. Robbins <arnold@skeeve.com> + + * gawkapi.c (api_lintwarn): Fix comparison, should be to check + lintfunc, not lintwarn. Thanks to OLLIER Jean-François + <lalanne.51@wanadoo.fr>, reported 23 March, 2014. + 2020-10-11 Arnold D. Robbins <arnold@skeeve.com> * re.c (make_regexp): Add {} to characters that cause rp->maybe_long @@ -275,7 +275,7 @@ api_lintwarn(awk_ext_id_t id, const char *format, ...) (void) id; va_start(args, format); - if (lintwarn == r_fatal) { + if (lintfunc == r_fatal) { err(true, _("fatal: "), format, args); } else { err(false, _("warning: "), format, args); |