-Wall and include

FX Coudert fxcoudert@gmail.com
Thu Aug 9 20:01:00 GMT 2007


> And I want gfortran to let me know which unused parameters I have  
> declared in
> my code, but i would like it not to warn me about parameters  
> declared in an
> include file that are not used in the file included but in the file  
> where the
> include directive lies.

Hum, then I'm afraid it's just not possible. We could possible think  
of an option that would catch and ignore all warnings emitted for  
source locations in included files. I'm not sure how much this option  
would be used by the community, however.

Of course, I know that you have no complete control over the source  
code, and no desire to change its structure, and I also know you know  
that the right way of tackling the problem would be with modules, but  
let it be stated nonetheless. ;-)

FX



More information about the Fortran mailing list