Closed stefabat closed 6 months ago
Thanks! We will clean this for the next release.
Noted! Do you think the use iso-c-binding
call can be omitted in the basic Fortran function interfaces that have bind(C) in their declarations but which do not use any C native types or symbols like c_int32 or c_null_char?
Noted! Do you think the
use iso-c-binding
call can be omitted in the basic Fortran function interfaces that have bind(C) in their declarations but which do not use any C native types or symbols like c_int32 or c_null_char?
I don't think so because of the return type of the function which has to be a C type. Maybe subroutines without arguments will work, I need to try...
I created #147 for this request.
Currently, the Fortran API triggers a bunch of warnings when compiled with
gfortran
and the-Wuse-without-only
flag, e.g.:It would be nice if the API file could be generated with the
only
keyword, specifying only the variables and procedures actually used fromiso_c_binding
.