From: Daniel Arndt Date: Mon, 23 Apr 2018 13:59:23 +0000 (+0200) Subject: Avoid uninitialized value in GridIn::read_mesh X-Git-Tag: v9.0.0-rc1~114^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b572dd741a674724ce311863e45646a4e4c7179;p=dealii.git Avoid uninitialized value in GridIn::read_mesh --- diff --git a/source/grid/grid_in.cc b/source/grid/grid_in.cc index d46cdc11b7..737840fc75 100644 --- a/source/grid/grid_in.cc +++ b/source/grid/grid_in.cc @@ -1530,7 +1530,7 @@ void GridIn::read_msh (std::istream &in) else if (cell_type == 15) { // read the indices of nodes given - unsigned int node_index; + unsigned int node_index = 0; switch (gmsh_file_format) { case 1: @@ -1544,6 +1544,8 @@ void GridIn::read_msh (std::istream &in) in >> node_index; break; } + default: + Assert(false, ExcInternalError()); } // we only care about boundary indicators assigned to individual