Re: Unused variables warning with -Wextra flag

2013-02-28 Thread Iain Buclaw
On Feb 28, 2013 6:55 PM, "bdsatish" wrote: > > Hi, > > Some warning messages are being "leaked" from GDC's source code into end-user's code. I think this shouldn't happen and hence, is a bug. > > ``` > // example.d > import std.string; > > void main() > { > format("Hello World"); > } > > ``` > H

Unused variables warning with -Wextra flag

2013-02-28 Thread bdsatish
Hi, Some warning messages are being "leaked" from GDC's source code into end-user's code. I think this shouldn't happen and hence, is a bug. ``` // example.d import std.string; void main() { format("Hello World"); } ``` Here's the output: ``` [shell]$ gdc -Wextra example.d $INSTALLDIR/gc