Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation warning: Implicitly declared variables position and vertexid #33

Open
MakisH opened this issue Jan 29, 2025 · 0 comments
Open

Comments

@MakisH
Copy link
Member

MakisH commented Jan 29, 2025

When trying to build the elastic-tube-1d fluid-fortran-module, I got this warning (gfortran 11.4.0):

fortran-module/precice.f90

Lines 106 to 107 in dc88c3b

subroutine precicef_set_vertex(meshName, position, vertexID, meshNameLength) &
& bind(c, name='precicef_set_vertex_')

[ 40%] Building Fortran object CMakeFiles/FluidSolver.dir/src/precice.f90.o
/home/gc/repos/precice/tutorials/elastic-tube-1d/fluid-fortran-module/src/precice.f90:106:34-53:

  106 |     subroutine precicef_set_vertex(meshName, position, vertexID, meshNameLength) &
      |                                  2                  1
Warning: Implicitly declared variable ‘position’ at (1) may not be C interoperable but it is a dummy argument to the BIND(C) procedure ‘precicef_set_vertex’ at (2) [-Wc-binding-type]
/home/gc/repos/precice/tutorials/elastic-tube-1d/fluid-fortran-module/src/precice.f90:106:34-63:

  106 |     subroutine precicef_set_vertex(meshName, position, vertexID, meshNameLength) &
      |                                  2                            1
Warning: Implicitly declared variable ‘vertexid’ at (1) may not be C interoperable but it is a dummy argument to the BIND(C) procedure ‘precicef_set_vertex’ at (2) [-Wc-binding-type]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant