-Wall and include

Tobias Schlüter tobias.schlueter@physik.uni-muenchen.de
Thu Aug 9 20:03:00 GMT 2007


FX Coudert wrote:
>> 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. ;-)

I think what Éric is trying to say is that he wants the error message to 
point to the location in the included file, not to the place of inclusion.

- Tobi



More information about the Fortran mailing list