This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

compiler directive to disable warnings


Hi,

I'm wondering if there is a Gfortran equivalent to GCC pragmas for switching off compiler warnings inside the code, i.e.:

http://gcc.gnu.org/onlinedocs/gcc-4.6.0/gcc/Diagnostic-Pragmas.html#Diagnostic-Pragmas

? If not, I think that it would be nice to have similar compiler directives for Fortran, eg.:

!GCC$ diagnostic warning "-Wconversion"

with the same behaviour as GCC. I guess that once the directive is detected, the same code as is used for the GCC pragmas could be called?

Many thanks,

Andy


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]