From: Daniel Arndt Date: Fri, 6 Dec 2019 23:16:59 +0000 (-0500) Subject: Avoid some warnings in python-bindings X-Git-Tag: v9.2.0-rc1~805^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbf7d5be071e6678e4f485b8cdb5a073cd68dd60;p=dealii.git Avoid some warnings in python-bindings --- 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);