ecmwf / fckit

A Fortran toolkit for interoperating Fortran with C/C++
https://confluence.ecmwf.int/display/fckit
Apache License 2.0
29 stars 13 forks source link

Compiler warnings with fckit #10

Closed rhoneyager closed 4 years ago

rhoneyager commented 4 years ago

When doing a build test of the UFO bundle on Apple Clang, several warnings were noted regarding 1) uninitialized memory use and 2) functions with names that shadow compiler intrinsics.

The log: fckit-log.txt

These should probably be passed upstream, but I am recording these here in case anyone stumbles across fckit-related issues.

wdeconinck commented 4 years ago

Thank you @rhoneyager for this report. Nothing looks severe but it would be nice to have no warnings of course. Which Fortran compiler / flags did you use? (Apple Clang is for C/C++).

rhoneyager commented 4 years ago

Hi. gfortran 9.2 was used for this build, with the -Wall option.

wdeconinck commented 4 years ago

Thank you @rhoneyager I finally got around to dealing with these warnings. Hopefully it fixes all of the warnings -- at least it does all the ones I encountered with gfortran 9.3