Bug 2212 – phobos itself should be able to be compiled with '-w' switch

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2008-07-09T16:21:00Z
Last change time
2015-06-09T01:19:51Z
Assigned to
bugzilla
Creator
someanon

Comments

Comment #0 by someanon — 2008-07-09T16:21:51Z
v2.016, with '-w' switch: dmd/bin/../bin/../src/phobos/std/string.d(186): function std.string.icmp no return at end of function
Comment #1 by someanon — 2008-07-11T23:22:28Z
v2.017: warning - /dmd/bin/../bin/../src/phobos/std/file.d(1064): Error: implicit conversion of expression (fta / 1000L) of type long to int can cause loss of data warning - /dmd/bin/../bin/../src/phobos/std/file.d(1065): Error: implicit conversion of expression (cast(long)(cast(double)fta / 1000 * 1e+06) % 1000000L) of type long to int can cause loss of data warning - /dmd/bin/../bin/../src/phobos/std/file.d(1067): Error: implicit conversion of expression (ftm / 1000L) of type long to int can cause loss of data warning - /dmd/bin/../bin/../src/phobos/std/file.d(1068): Error: implicit conversion of expression (cast(long)(cast(double)ftm / 1000 * 1e+06) % 1000000L) of type long to int can cause loss of data
Comment #2 by david — 2009-01-09T12:40:22Z
(In reply to comment #1) > v2.017: > > warning - /dmd/bin/../bin/../src/phobos/std/file.d(1064): Error: implicit > conversion of expression (fta / 1000L) of type long to int can cause loss of > data > warning - /dmd/bin/../bin/../src/phobos/std/file.d(1065): Error: implicit > conversion of expression (cast(long)(cast(double)fta / 1000 * 1e+06) % > 1000000L) of type long to int can cause loss of data > warning - /dmd/bin/../bin/../src/phobos/std/file.d(1067): Error: implicit > conversion of expression (ftm / 1000L) of type long to int can cause loss of > data > warning - /dmd/bin/../bin/../src/phobos/std/file.d(1068): Error: implicit > conversion of expression (cast(long)(cast(double)ftm / 1000 * 1e+06) % > 1000000L) of type long to int can cause loss of data > This problem is caused by the -release flag.
Comment #3 by clugdbug — 2009-04-03T07:51:37Z
Fixed DMD2.027. The Phobos win32.mak file was changed to include the -w flag. This ensures that all future DMD releases will be -w compatible.