comparison dmd/statement.c @ 92:70d6113eeb8c trunk

[svn r96] Updated to DMD 1.023. Regular bugfixes.
author lindquist
date Thu, 08 Nov 2007 19:13:28 +0100
parents fd32135dca3e
children 288fe1029e1f
comparison
equal deleted inserted replaced
91:3f949c6e2e9d 92:70d6113eeb8c
640 } 640 }
641 return FALSE; 641 return FALSE;
642 } 642 }
643 643
644 int UnrolledLoopStatement::fallOffEnd() 644 int UnrolledLoopStatement::fallOffEnd()
645 { int falloff = TRUE; 645 {
646
647 //printf("UnrolledLoopStatement::fallOffEnd()\n"); 646 //printf("UnrolledLoopStatement::fallOffEnd()\n");
648 for (size_t i = 0; i < statements->dim; i++) 647 for (size_t i = 0; i < statements->dim; i++)
649 { Statement *s = (Statement *)statements->data[i]; 648 { Statement *s = (Statement *)statements->data[i];
650 649
651 if (!s) 650 if (s)
652 continue; 651 s->fallOffEnd();
653 652 }
654 if (!falloff && global.params.warnings && !s->comeFrom()) 653 return TRUE;
655 { 654 }
656 fprintf(stdmsg, "warning - "); 655
657 s->error("statement is not reachable");
658 }
659 falloff = s->fallOffEnd();
660 }
661 return falloff;
662 }
663 656
664 int UnrolledLoopStatement::comeFrom() 657 int UnrolledLoopStatement::comeFrom()
665 { int comefrom = FALSE; 658 { int comefrom = FALSE;
666 659
667 //printf("UnrolledLoopStatement::comeFrom()\n"); 660 //printf("UnrolledLoopStatement::comeFrom()\n");