[PATCH,FORTRAN] Add libcaf prototype
Tobias Burnus
burnus@net-b.de
Sun May 5 18:20:00 GMT 2013
David Edelsohn wrote:
> libcaf produces warnings because it defines functions without
> prototypes. This patch adds prototypes.
>
> Bootstrapped on powerpc-ibm-aix7.1.0.0.
OK - given that the removal of _gfortran_caf_critical takes longer than
expected, it makes sense to add a prototype to silence the warning.
Tobias
> * libcaf.h (_gfortran_caf_critical): Add a prototype.
> (_gfortran_caf_end_critical): Same.
>
> Index: libcaf.h
> ===================================================================
> --- libcaf.h (revision 198603)
> +++ libcaf.h (working copy)
> @@ -76,7 +76,10 @@
>
> /* FIXME: The CRITICAL functions should be removed;
> the functionality is better represented using Coarray's lock feature. */
> +void _gfortran_caf_critical (void);
> void _gfortran_caf_critical (void) { }
> +
> +void _gfortran_caf_end_critical (void);
> void _gfortran_caf_end_critical (void) { }
>
More information about the Fortran
mailing list