/* statement is not a label */
if (loop->op == GOTO || loop->op == RETURN)
{
- int warn = 0;
-
if (loop->next &&
(loop->next->op == LABEL ||
loop->next->op == ENDFUNCTION))
hTabDeleteItem (&labelRef, IC_LABEL (tic)->key, tic, DELETE_ITEM, NULL);
break;
case IFX:
- warn = 1;
+ 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:
- warn = 1;
-
+ werrorfl (tic->filename, tic->lineno, W_CODE_UNREACH);
}
}
- if (warn)
- werrorfl (loop->next->filename, loop->next->lineno,
- W_CODE_UNREACH);
-
/* now set up the pointers */
loop->next = loop2;
if (loop2)