From de85f2735eaef8975f9f7e30707173e4f2476ae7 Mon Sep 17 00:00:00 2001 From: Arkshine Date: Sun, 31 Aug 2014 14:52:24 +0200 Subject: [PATCH] Fix compiler crash due to missing recursion message warning. --- compiler/libpc300/sc1.c | 2 +- compiler/libpc300/sc5-in.scp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/libpc300/sc1.c b/compiler/libpc300/sc1.c index 82ad38c3..5414392f 100755 --- a/compiler/libpc300/sc1.c +++ b/compiler/libpc300/sc1.c @@ -4271,7 +4271,7 @@ static long max_stacksize_recurse(symbol **sourcesym,symbol *sym,long basesize,i funcdisplayname(symname,sym->name); errorset(sSETFILE,sym->fnumber); errorset(sSETLINE,sym->lnumber); - error(237,symname); /* recursive function */ + error(234,symname); /* recursive function */ } /* if */ *recursion=1; goto break_recursion; /* recursion was detected, quit loop */ diff --git a/compiler/libpc300/sc5-in.scp b/compiler/libpc300/sc5-in.scp index 12e98370..25c52a0f 100644 --- a/compiler/libpc300/sc5-in.scp +++ b/compiler/libpc300/sc5-in.scp @@ -291,6 +291,7 @@ static char *warnmsg[] = { /*231*/ "state specification on forward declaration is ignored\n", /*232*/ "output file is written, but with compact encoding disabled\n" /*233*/ "symbol \"%s\" is marked as deprecated: %s\n", +/*234*/ "recursive function \"%s\"\n", #else "\345 \274tr\240\226\233\277 %\206\273\337c\367\305", "\222\323i\231\300\344\224t/\314cr\375\364",