From: johanknol Date: Thu, 3 Apr 2003 10:10:42 +0000 (+0000) Subject: another missing return value fix X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=edb7d4ddf17ec135168854dac6c08a8079d033b8;p=fw%2Fsdcc another missing return value fix git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2473 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCCopt.c b/src/SDCCopt.c index 899e3199..25ca302e 100644 --- a/src/SDCCopt.c +++ b/src/SDCCopt.c @@ -892,7 +892,7 @@ eBBlockFromiCode (iCode * ic) if (!options.lessPedantic) { // this is a good place to check missing return values if (currFunc) { - if (!IS_VOID(currFunc->type->next)) { + if (!IS_VOID(currFunc->etype)) { eBBlock *bp; // make sure all predecessors of the last block end in a return for (bp=setFirstItem(ebbs[saveCount-1]->predList);