www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Disable warnings per import

reply "Martin Cejp" <minexew gmail.com> writes:
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.
Jan 24 2014
parent "Aleksandar Ruzicic" <aleksandar ruzicic.info> writes:
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.
Jan 24 2014