]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Avoid a couple of (stupid) warnings.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 3 Dec 2012 08:16:25 +0000 (08:16 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 3 Dec 2012 08:16:25 +0000 (08:16 +0000)
git-svn-id: https://svn.dealii.org/trunk@27727 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/grid/grid_tools.cc

index 5ff4f0bd56088beb2a2739bc1713d62d180c7a56..1e4516091ba33bfd0a395a813b36cc65d8f07596 100644 (file)
@@ -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
-

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.