ADIOS2 icon indicating copy to clipboard operation
ADIOS2 copied to clipboard

Fortran build emitting large number of warning with gcc-10

Open NAThompson opened this issue 4 years ago • 2 comments

Numerous warnings are being emitted by gcc-10 builds of ADIOS2:

Warning: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar)
[361/912] Building Fortran object bindings/Fortran/CMakeFiles/adios2_fortran.dir/modules/adios2_engine_get_mod.f90.o
contains/adios2_engine_get_deferred_by_name.f90:742:41:
......
Warning: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/INTEGER(8)).
contains/adios2_engine_put_deferred.f90:152:54:

These can be silenced by the flag -fallow-argument-mismatch, but more thinking is required to decide if this is a reasonable fix.

NAThompson avatar Aug 05 '20 14:08 NAThompson

Numerous warnings are being emitted by gcc-10 builds of ADIOS2: ... These can be silenced by the flag -fallow-argument-mismatch, but more thinking is required to decide if this is a reasonable fix.

They can't be silenced; the -fallow-argument-mismatch flag simply downgrades them from errors to warnings (see https://gcc.gnu.org/gcc-10/porting_to.html). This is already a known issue, #2228 that was resolved in #2250 by adding the appropriate flag to allow compilation and then in #2407 when the CI images started including gcc10 by suppressing the warning on CDash. We decided then to just accept the warnings.

Should we leave this open as a known issue or close it as duplicate / resolved?

chuckatkins avatar Aug 19 '20 18:08 chuckatkins

You can silence them by supressing all warnings with -w, so you have to do -fallow-argument-mismatch -w

ghorn avatar Jun 29 '22 20:06 ghorn