[phobos] Octal literals in druntime/src/core/sys/posix/
sean at invisibleduck.org
Wed Mar 7 10:58:25 PST 2012
On Mar 7, 2012, at 4:01 AM, Don Clugston wrote:
> I gets errors when building d_do_test. There are multiple errors in
> each of these files, I've shown only one.
> druntime/src/core/sys/posix/sys/wait.d(78): octal literals 0177 are
> deprecated, use std.conv.octal!177 instead
> druntime/src/core/sys/posix/fcntl.d(103): octal literals 0100 are
> deprecated, use std.conv.octal!100 instead
> druntime/src/core/sys/posix/sys/stat.d(142): octal literals 0400 are
> deprecated, use std.conv.octal!400 instead
Ugh. These should be changed to hex.
> I was also disturbed to notice that the druntime modules are ALL built
> with the -d flag, so this isn't showing up when building druntime.
> But I don't understand why this error isn't showing up in the
> autotester, when building d_do_test.
Really, only core.thread needs to be build with -d (since it uses "volatile").
More information about the phobos