Skip to content

Compilation warnings in non-debug mode for GFSv17 #2162

Description

@CatherineThomas-NOAA

NCO standards say “Did code compile without any error or warning messages, i.e., is it verified that no compiler options were used to suppress any error or warning messages?"

When we compile GDASApp in normal mode (i.e. not debug mode), we still have many warning messages that fall into several types:

GDASApp source code (saber, fv3jedi, ioda)

  • 5 cases in saber: warning #47: incompatible redefinition of macro "ERR"
  • 3 cases in fv3jedi: warning #6178: The return value of this FUNCTION has not been defined. (other cases in tmp/ifort*)
  • 13 cases in fv3jedi: warning #6843: A dummy argument with an explicit INTENT(OUT) declaration is not given an explicit value.
  • 3 cases in ioda: warning #1478: function "gsl::span<T>::span(gsl::span<T>::reference) [with T=const std::__cxx11::string]" (declared at line 3694 of "/apps/prod/gsl-lite/v0.40.0/include/gsl/gsl-lite.hpp") was declared deprecated
  • 56 cases in ioda, 1 case in ufo: warning #5462: Global name too long, shortened from: ioda_variable_creation_parameters_mod_mp_IODA_VARIABLE_CREATION_PARAMETERS_SET_FILL_VALUE_INT64 to: _variable_creation_parameters_mod_mp_IODA_VARIABLE_CREATION_PARAMETERS_SET_FILL_VALUE_INT64
  • 677 cases in ioda, saber, oops: warning #858: type qualifier on return type is meaningless
  • 7 cases in saber: warning #823: reference is to variable "jl" (declared at line 1042) -- under old for-init scoping rules it would have been variable "jl" (declared at line 1074)

Other warnings for thing that might be out of our control? Cmake/ifort/fms/eckit

  • 26 cases: CMake Warning: Policy CMP0144 is not set: find_package uses upper-case <PACKAGENAME>_ROOT variables.
  • 8 cases: warning: relocation in read-only section .trace
  • 8 cases: warning: creating DT_TEXTREL in a shared object
  • 5 cases: fms_platform.h(88): #warning: macro redefined: QUAD_KIND (fms)
  • 200 cases: warning #2651: attribute does not apply to any entity (eckit)
  • 503 cases: “ifort: command line warning #10121: overriding '-qopenmp-stubs' with '-qopenmp'”

This build was compiled using the new atlas and can be found here on Dogwood: /lfs/h2/emc/global/noscrub/travis.j.elless/global_workflow/v17_atlas_test2/global-workflow

A saved version of the build output log can be found here on Dogwood: /lfs/h2/emc/da/noscrub/catherine.thomas/tmp/build_gdas.log

I’d appreciate any help digging through these, seeing what warnings are reasonable to take care of and which ones aren’t.

cc @CoryMartin-NOAA @guillaumevernieres @shlyaeva @danholdaway @DavidNew-NOAA @RussTreadon-NOAA

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions