www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2212] New: phobos itself should be able to be compiled with '-w' switch

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2212

           Summary: phobos itself should be able to be compiled with '-w'
                    switch
           Product: D
           Version: 2.016
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: someanon yahoo.com


v2.016, with '-w' switch:

dmd/bin/../bin/../src/phobos/std/string.d(186): function std.string.icmp no
return at end of function


-- 
Jul 09 2008
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2212





------- Comment #1 from someanon yahoo.com  2008-07-11 23:22 -------
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


-- 
Jul 11 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2212





------- Comment #2 from david ferenczi.net  2009-01-09 12:40 -------
(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. --
Jan 09 2009
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2212


clugdbug yahoo.com.au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #3 from clugdbug yahoo.com.au  2009-04-03 07:51 -------
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.


-- 
Apr 03 2009