digitalmars.D.bugs - DMD 0.116 warning: statement is not reachable
- Vathix (15/15) Mar 07 2005 void foo(int num)
- Jarrett Billingsley (1/2) Mar 08 2005 Definitely not upgrading until 0.117 then.
- Vathix (4/6) Mar 08 2005 Since warnings have to be manually enabled with -w it's not such a big
- Ivan Cibiri (13/28) Mar 08 2005 It seems to be a warning bug also in this situation:
void foo(int num)
{
if(num == 2)
return;
printf("foo!\n"); // Line 5.
}
int main()
{
foo(1);
return 0;
}
dmd -w -c test
warning - test.d(5): statement is not reachable
It also won't output an obj file if there's a warning.
- Chris
Mar 07 2005
It also won't output an obj file if there's a warning.Definitely not upgrading until 0.117 then.
Mar 08 2005
On Tue, 8 Mar 2005 16:14:25 -0500, Jarrett Billingsley <kb3ctd2 yahoo.com> wrote:Since warnings have to be manually enabled with -w it's not such a big deal.It also won't output an obj file if there's a warning.Definitely not upgrading until 0.117 then.
Mar 08 2005
It seems to be a warning bug also in this situation:
int main() { // Line 1
int i = 1;
if(i == 1) {
throw new Error("err 1");
}
i += 5; //Line 6
return 0;
}
dmd -w test.d
warning - test.d(6): statement is not reachable
Ivan.
In article <opsnapvzo5kcck4r esi>, Vathix says...
void foo(int num)
{
if(num == 2)
return;
printf("foo!\n"); // Line 5.
}
int main()
{
foo(1);
return 0;
}
dmd -w -c test
warning - test.d(5): statement is not reachable
It also won't output an obj file if there's a warning.
- Chris
Mar 08 2005









Vathix <vathix dprogramming.com> 