Phobos warnings in DMD 1.029 and 2.013
Steven Schveighoffer
schveiguy at yahoo.com
Mon Apr 28 06:35:54 PDT 2008
"Anders F Björklund" wrote
>
> I updated my packages for dmd/dmd2, and here's
> what I got when building them --with warnings:
>
>
> phobos
> ======
> internal/critical.c:138: warning: implicit declaration of function
> `pthread_mutexattr_settype'
> internal/monitor.c:138: warning: implicit declaration of function
> `pthread_mutexattr_settype'
> warning - gcx.d(1576): Error: switch statement has no default
> warning - gcx.d(1576): Error: statement is not reachable
> warning - gcx.d(1576): Error: switch statement has no default
> warning - gcx.d(1576): Error: statement is not reachable
> warning - gcx.d(1576): Error: switch statement has no default
> warning - gcx.d(1576): Error: statement is not reachable
>
> phobos2
> =======
> warning - std/regexp.d(636): class std.regexp.RegExp Object opEquals is
> hidden in RegExp
> warning - std/stream.d(2217): class std.stream.EndianStream Stream read is
> hidden in EndianStream
> warning - std/stream.d(2217): class std.stream.EndianStream Stream read is
> hidden in EndianStream
> warning - std/stream.d(2217): class std.stream.EndianStream Stream read is
> hidden in EndianStream
> warning - std/stream.d(2217): class std.stream.EndianStream Stream read is
> hidden in EndianStream
> warning - std/stream.d(2217): class std.stream.EndianStream Stream read is
> hidden in EndianStream
> warning - std/stream.d(2217): class std.stream.EndianStream Stream read is
> hidden in EndianStream
> warning - std/stream.d(2217): class std.stream.EndianStream Stream write
> is hidden in EndianStream
> warning - std/stream.d(2217): class std.stream.EndianStream Stream write
> is hidden in EndianStream
> warning - std/stream.d(2217): class std.stream.EndianStream Stream write
> is hidden in EndianStream
> warning - std/stream.d(2217): class std.stream.EndianStream Stream write
> is hidden in EndianStream
> warning - std/stream.d(2217): class std.stream.EndianStream Stream write
> is hidden in EndianStream
> warning - std/stream.d(2217): class std.stream.EndianStream Stream write
> is hidden in EndianStream
> warning - std/syserror.d(11): class std.syserror.SysError Object toString
> is hidden in SysError
> warning - internal/object.d(738): class object.TypeInfo_Function TypeInfo
> next is hidden in TypeInfo_Function
> warning - internal/object.d(763): class object.TypeInfo_Delegate TypeInfo
> next is hidden in TypeInfo_Delegate
>
> Not sure why warnings can't be enabled when testing,
> but here's again my feeble attempts at patching them:
>
> http://www.algonet.se/~afb/d/dmd-0.141-cwarn.patch
> http://www.algonet.se/~afb/d/dmd-1.029-dwarn.patch
> http://www.algonet.se/~afb/d/dmd-2.013-dwarn.patch
>
For the EndianStream/TypeInfo problems, this can be fixed easier than what
you suggest by aliasing the parent versions of the method.
See
http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=68448
-Steve
More information about the Digitalmars-d
mailing list