Strange behaviour with -profile

Danny Arends Danny.Arends at gmail.com
Sun Feb 23 00:32:48 PST 2014


I have a medium sized project at: 
https://github.com/DannyArends/DaNode

it compiles fine with the normal build switches I used:

    $ rdmd --build-only -O -gc -release -w danode/server.d

if I compile with the -profile switch, I get a weird error:

    $ rdmd --build-only -O -gc -release -profile -w danode/server.d
    "Warning: statement is not reachable"

No line number or anything to point me to a solution

The weird thing is, I'm compiling using also with the -w switch, 
so in theory this should break compilation at the first warning, 
but the executable is created, and runs.

I am using DMD64 D Compiler v2.064, so it could be that the 
newest betas would fix this issue. But I haven gotten around to 
testing those, and this current build 2.064 works fine as a semi 
production build, so updating might also 'degrade' stability, and 
I have to find time to test it.

So I rather fix this, any suggestions ?

Danny Arends
http://www.dannyarends.nl


More information about the Digitalmars-d-learn mailing list