subroutine sub() __attribute__((deprecated)) ?
Steve Kargl
sgk@troutmask.apl.washington.edu
Sat Feb 28 19:29:00 GMT 2009
On Sat, Feb 28, 2009 at 07:57:48PM +0100, Daniel Franke wrote:
>
>
> are there any means that would allow the usage of procedure attributes, e.g.
>
> subroutine sub() __attribute__((deprecated))
> end subroutine
>
> with gfortran? Currently, all I get is a syntax error ...
>
> If not, is there another way to mark procedures as deprecated, so that the
> compiler issues a warning if they are used?
>
AFAIK, __attribute__ is unsupported in gfortran.
You could use C preprocessing with #warn.
--
Steve
More information about the Fortran
mailing list