X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2FSDCClabel.c;h=ba78d47900ceb109c9715d9eada48410e88a2440;hb=80972b2e54c9b88f11c27b878874fd2a6a681391;hp=de023c83af72b365183a238cba640e4a9d2fbdd4;hpb=5a3b73dade31d4473db40324a3cda9a8d5ed1bb0;p=fw%2Fsdcc diff --git a/src/SDCClabel.c b/src/SDCClabel.c index de023c83..ba78d479 100644 --- a/src/SDCClabel.c +++ b/src/SDCClabel.c @@ -384,7 +384,6 @@ labelUnreach (iCode * ic) /* statement is not a label */ if (loop->op == GOTO || loop->op == RETURN) { - if (loop->next && (loop->next->op == LABEL || loop->next->op == ENDFUNCTION)) @@ -405,12 +404,14 @@ labelUnreach (iCode * ic) hTabDeleteItem (&labelRef, IC_LABEL (tic)->key, tic, DELETE_ITEM, NULL); break; case IFX: + werrorfl (tic->filename, tic->lineno, W_CODE_UNREACH); if (IC_TRUE (tic)) hTabDeleteItem (&labelRef, IC_TRUE (tic)->key, tic, DELETE_ITEM, NULL); else hTabDeleteItem (&labelRef, IC_FALSE (tic)->key, tic, DELETE_ITEM, NULL); break; - + default: + werrorfl (tic->filename, tic->lineno, W_CODE_UNREACH); } }