X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2FSDCCopt.c;h=ce59ec5732292088a803bdeb40f8991717c793e8;hb=7c633d42e7c8d6979524e1d930b3c3585b6b926d;hp=2e1ff9a6f2c65a1ef891b34b196723441501310d;hpb=0259910eb50f7d13e3d45da7a8ae230a10d56da1;p=fw%2Fsdcc diff --git a/src/SDCCopt.c b/src/SDCCopt.c index 2e1ff9a6..ce59ec57 100644 --- a/src/SDCCopt.c +++ b/src/SDCCopt.c @@ -925,7 +925,9 @@ eBBlockFromiCode (iCode * ic) if (!options.lessPedantic) { // this is a good place to check missing return values if (currFunc) { - if (!IS_VOID(currFunc->etype)) { + // the user is on his own with naked functions... + if (!IS_VOID(currFunc->etype) + && !FUNC_ISNAKED(currFunc->type)) { eBBlock *bp; // make sure all predecessors of the last block end in a return for (bp=setFirstItem(ebbs[saveCount-1]->predList);