diff 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
line wrap: on
line diff
--- a/dmd/statement.c	Wed Nov 07 04:52:56 2007 +0100
+++ b/dmd/statement.c	Thu Nov 08 19:13:28 2007 +0100
@@ -642,25 +642,18 @@
 }
 
 int UnrolledLoopStatement::fallOffEnd()
-{   int falloff = TRUE;
-
+{
     //printf("UnrolledLoopStatement::fallOffEnd()\n");
     for (size_t i = 0; i < statements->dim; i++)
     {	Statement *s = (Statement *)statements->data[i];
 
-	if (!s)
-	    continue;
-
-	if (!falloff && global.params.warnings && !s->comeFrom())
-	{
-	    fprintf(stdmsg, "warning - ");
-	    s->error("statement is not reachable");
-	}
-	falloff = s->fallOffEnd();
+	if (s)
+	    s->fallOffEnd();
     }
-    return falloff;
+    return TRUE;
 }
 
+
 int UnrolledLoopStatement::comeFrom()
 {   int comefrom = FALSE;