Skip to content

Draft: Fixed some compilation warnings

wenqing requested to merge wenqing/ogs:fix_warnings into master

Fixed some compilation warnings. The warnings are caused by

  1. possibly dangling reference to a temporary in calling ParameterLib::findParameter, e.g.

    auto const& basis_vector_0 = ParameterLib::findParameter<double> ...

    Removing const fixes the warning. But I wonder that dangling reference may still exist because that ParameterLib::findParameter returns reference type.

  2. ProcessLib/Output/OutputFormat.h:110:51: warning: redundant move in initialization [-Wredundant-move]

110 | outputMeshXdmf(output_variables, std::move(meshes), ...

  1. Feature description was added to the changelog
  2. Tests covering your feature were added?
  3. Any new feature or behavior change was documented?

Merge request reports