January 24, 2014 Disable warnings per import | ||||
---|---|---|---|---|
| ||||
Is this possible? I'm importing some older library code (Derelict2) and the compiler gives me a lot of deprecation warnings every time. Can I somehow disable those? Note that the library is pre-compiled as lib*.a, the project just imports it for the declarations. |
January 24, 2014 Re: Disable warnings per import | ||||
---|---|---|---|---|
| ||||
Posted in reply to Martin Cejp | On Friday, 24 January 2014 at 13:38:17 UTC, Martin Cejp wrote:
> Is this possible? I'm importing some older library code
> (Derelict2) and the compiler gives me a lot of deprecation
> warnings every time. Can I somehow disable those?
> Note that the library is pre-compiled as lib*.a, the project just
> imports it for the declarations.
You can use -d switch with DMD, which will silently allow
deprecated features.
|
Copyright © 1999-2021 by the D Language Foundation