Skip to content
Snippets Groups Projects
Commit 8b08f9aa authored by Timo Koch's avatar Timo Koch
Browse files

Merge branch 'fix/compiler-warnings' into 'master'

[test][io] Fix compiler warnings

See merge request !437
parents cfacb5f7 7f7cfe36
Branches ci/gitlab_triage
No related tags found
4 merge requests!600[WIP][components][plotproperties] Add a source file to plot properties of some components,!501Freeflow/turbulenceproperties,!492Resolve "Inconsistent `index()` method of the different `SubControlVolume` classes",!437[test][io] Fix compiler warnings
...@@ -105,11 +105,11 @@ int main() ...@@ -105,11 +105,11 @@ int main()
if (!passed) return 1; if (!passed) return 1;
// we can write also std::arrays (all container providing begin and end) // we can write also std::arrays (all container providing begin and end)
passed = passed && Dumux::testContainerWriter<std::array<double, 2>>(std::array<double, 2>{1.0, 2.0}); passed = passed && Dumux::testContainerWriter<std::array<double, 2>>({{1.0, 2.0}});
passed = passed && Dumux::testContainerWriter<std::array<int, 2>>(std::array<int, 2>{1, 2}); passed = passed && Dumux::testContainerWriter<std::array<int, 2>>({{1, 2}});
passed = passed && Dumux::testContainerWriter<std::array<std::string, 2>>(std::array<std::string, 2>{"1.0", "2.0"}); passed = passed && Dumux::testContainerWriter<std::array<std::string, 2>>({{"1.0", "2.0"}});
passed = passed && Dumux::testContainerWriter<std::array<Dune::FieldVector<double, 3>, 2>>( passed = passed && Dumux::testContainerWriter<std::array<Dune::FieldVector<double, 3>, 2>>(
std::array<Dune::FieldVector<double, 3>, 2>{Dune::FieldVector<double, 3>(0.0), Dune::FieldVector<double, 3>(1.0)}); std::array<Dune::FieldVector<double, 3>, 2>{{Dune::FieldVector<double, 3>(0.0), Dune::FieldVector<double, 3>(1.0)}});
if (!passed) return 1; if (!passed) return 1;
return 0; return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment