As I said above, I can't use "-warn errors" because I have other "safe" warnings.
I wasn't aware of the option "-diag-error". It works with ifort 13.1.1, i.e. "-warn declarations -diag-error 6717" turns the error status to 1 when needed. Unfortunately it does not work with ifort 11.1, the default version I currently use. The option exists but does not seem to have an effect.
As I said above, I can't use "-warn errors" because I have other "safe" warnings.
I wasn't aware of the option "-diag-error". It works with ifort 13.1.1, i.e. "-warn declarations -diag-error 6717" turns the error status to 1 when needed. Unfortunately it does not work with ifort 11.1, the default version I currently use. The option exists but does not seem to have an effect.