diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-07-18 22:39:59 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-07-18 22:39:59 +0300 |
commit | 95b9f0c6c59cb4de1d7a65c3afe4d618a252de5a (patch) | |
tree | 429a1317082c72c5a532acd51837c153c9511c7e | |
parent | e6a57c37363922820a49ea95f2a2d9e03a3beeb5 (diff) | |
download | egawk-95b9f0c6c59cb4de1d7a65c3afe4d618a252de5a.tar.gz egawk-95b9f0c6c59cb4de1d7a65c3afe4d618a252de5a.tar.bz2 egawk-95b9f0c6c59cb4de1d7a65c3afe4d618a252de5a.zip |
Small code cleanup in awkgram.y:shadow_funcs.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | awkgram.c | 2 | ||||
-rw-r--r-- | awkgram.y | 2 |
3 files changed, 8 insertions, 2 deletions
@@ -1,3 +1,9 @@ +2016-07-19 Arnold D. Robbins <arnold@skeeve.com> + + * awkgram.y (shadow_funcs): Change test at end to be + `lintfunc == r_fatal' instead of `lintfunc != warning'. + Thank to Andrew Schorr for the suggestion. + 2016-07-18 Arnold D. Robbins <arnold@skeeve.com> * main.c (locale_dir): New variable, init to LOCALEDIR (set by @@ -6591,7 +6591,7 @@ shadow_funcs() efree(funcs); /* End with fatal if the user requested it. */ - if (shadow && lintfunc != warning) + if (shadow && lintfunc == r_fatal) lintwarn(_("there were shadowed variables.")); } @@ -4252,7 +4252,7 @@ shadow_funcs() efree(funcs); /* End with fatal if the user requested it. */ - if (shadow && lintfunc != warning) + if (shadow && lintfunc == r_fatal) lintwarn(_("there were shadowed variables.")); } |