This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
compiler directive to disable warnings
- From: Andy May <MayAJ1 at cardiff dot ac dot uk>
- To: fortran at gcc dot gnu dot org
- Date: Fri, 01 Jun 2012 13:03:07 +0100
- Subject: 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