aboutsummaryrefslogtreecommitdiffstats
path: root/awkgram.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2013-04-14 14:26:44 +0300
committerArnold D. Robbins <arnold@skeeve.com>2013-04-14 14:26:44 +0300
commit02d472d056684dd62921ec74eb212b84377046ef (patch)
treeefa3b5e1ef193ddc07cd73d62489a2ceb1ea7406 /awkgram.c
parent2f33b52ecd3b07f4c45cf64e6bade9b65c07e330 (diff)
downloadegawk-02d472d056684dd62921ec74eb212b84377046ef.tar.gz
egawk-02d472d056684dd62921ec74eb212b84377046ef.tar.bz2
egawk-02d472d056684dd62921ec74eb212b84377046ef.zip
Bug fix in awkgram.y:check_funcs.
Diffstat (limited to 'awkgram.c')
-rw-r--r--awkgram.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/awkgram.c b/awkgram.c
index 31f80bc8..03a39e72 100644
--- a/awkgram.c
+++ b/awkgram.c
@@ -6901,17 +6901,18 @@ check_funcs()
for (i = 0; i < HASHSIZE; i++) {
for (fp = ftable[i]; fp != NULL; fp = fp->next) {
- if (fp->defined == 0 && ! fp->extension) {
#ifdef REALLYMEAN
- /* making this the default breaks old code. sigh. */
+ /* making this the default breaks old code. sigh. */
+ if (fp->defined == 0 && ! fp->extension) {
error(
_("function `%s' called but never defined"), fp->name);
errcount++;
+ }
#else
+ if (do_lint && fp->defined == 0 && ! fp->extension)
lintwarn(
_("function `%s' called but never defined"), fp->name);
#endif
- }
if (do_lint && fp->used == 0 && ! fp->extension) {
lintwarn(_("function `%s' defined but never called directly"),