digitalmars.D.bugs - [patch] Phobos passes all warnings
- =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= (18/22) Mar 14 2005 D 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.patchThese 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