From: bangerth Date: Mon, 3 Dec 2012 08:16:25 +0000 (+0000) Subject: Avoid a couple of (stupid) warnings. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d95509d4891c5ada55d3811968df345825686dc;p=dealii-svn.git Avoid a couple of (stupid) warnings. git-svn-id: https://svn.dealii.org/trunk@27727 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/grid/grid_tools.cc b/deal.II/source/grid/grid_tools.cc index 5ff4f0bd56..1e4516091b 100644 --- a/deal.II/source/grid/grid_tools.cc +++ b/deal.II/source/grid/grid_tools.cc @@ -2230,6 +2230,9 @@ next_cell: static const MATCH_T m_ttf = {{ 1 , 0 }}; if (matching == m_ttf) return 3; // [true ,true ,false] AssertThrow(false, ExcInternalError()); + // what follows is dead code, but it avoids warnings about the lack + // of a return value + return -1; } }; @@ -2260,6 +2263,9 @@ next_cell: static const MATCH_T m_ftt = {{ 1 , 0 , 3 , 2 }}; if (matching == m_ftt) return 6; // [false,true ,true ] AssertThrow(false, ExcInternalError()); + // what follows is dead code, but it avoids warnings about the lack + // of a return value + return -1; } }; @@ -2518,4 +2524,3 @@ next_cell: #include "grid_tools.inst" DEAL_II_NAMESPACE_CLOSE -