From dbf7d5be071e6678e4f485b8cdb5a073cd68dd60 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Fri, 6 Dec 2019 18:16:59 -0500 Subject: [PATCH] Avoid some warnings in python-bindings --- contrib/python-bindings/source/triangulation_wrapper.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/contrib/python-bindings/source/triangulation_wrapper.cc b/contrib/python-bindings/source/triangulation_wrapper.cc index d029380b1e..1123f7e42b 100644 --- a/contrib/python-bindings/source/triangulation_wrapper.cc +++ b/contrib/python-bindings/source/triangulation_wrapper.cc @@ -554,13 +554,15 @@ namespace python tria->clear(); - typename GridIn::Format input_format; + typename GridIn::Format input_format = + GridIn::Format::Default; if (format.compare("msh") == 0) input_format = GridIn::Format::msh; else if (format.compare("vtk") == 0) input_format = GridIn::Format::vtk; else - ExcMessage("Cannot read triangulation of the given format."); + Assert(false, + ExcMessage("Cannot read triangulation of the given format.")); GridIn mesh_reader; mesh_reader.attach_triangulation(*tria); -- 2.39.5