Wish: Variable Not Used Warning
Bruce Adams
tortoise_74 at yeah.who.co.uk
Wed Jul 9 00:04:42 PDT 2008
On Mon, 07 Jul 2008 09:23:15 +0100, Don <nospam at nospam.com.au> wrote:
>
> I agree. Unfortunately, there's a problem with the 'optional' warnings
> we have in DMD right now. They are not optional for libraries. If a
> library generates warnings, then it is not usable by anyone who wants to
> compile with warnings enabled.
>
> I'd love to see the warnings tightened up so that they can become bugs.
>
That is questionably a flaw in the way D processes libraries. But the same
flaw as in C++.
If your include file has warnings you have to surpress them when using the
library.
Presumably if you use .di files (created/compiled with warnings switched
off) this won't
happen?
Regards,
Bruce.
More information about the Digitalmars-d
mailing list