www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [patch] Phobos passes all warnings

C warnings:
http://www.algonet.se/~afb/d/dmd-0.118-cwarn.patch
 (pthread_mutexattr_settype is only available in
 the __UNIX98 version of the <pthread.h> header)
D warnings: http://www.algonet.se/~afb/d/dmd-0.118-dwarn.patch - downcasting of like "255" to return ubyte/ushort, etc - "missing" default cases to certain switch statements - "missing" code after infinite loops, added assert(0) - casts from long to ulong (these might still lose data ?) - returned values, after throwing Exception (unreachable) One real bug: - std.date called LeapYear with seconds instead of year? Bogus booleans: http://www.algonet.se/~afb/d/dmd-0.118-dbool.patch
 These should *not* cause warnings, and this patch
 should be removed when the compiler has been fixed.
With the patches, Phobos now passes with the settings: CFLAGS="-Wall -Werror" CXXFLAGS="$CFLAGS" DFLAGS="-w" http://www.algonet.se/~afb/d/dmd.spec http://www.algonet.se/~afb/d/dmd-0.118-10.nosrc.rpm --anders
Mar 14 2005