From e7a848b02f174e3a5c3507b621f1e16cbdd08ed5 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 3 Dec 2012 08:16:25 +0000 Subject: [PATCH] Avoid a couple of (stupid) warnings. git-svn-id: https://svn.dealii.org/trunk@27727 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/grid/grid_tools.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 - -- 2.39.5