From: Daniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Date: Mon, 24 Jul 2017 22:20:07 +0000 (+0200)
Subject: Fix compilation without p4est
X-Git-Tag: v9.0.0-rc1~1385^2
X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e13c5a5799fcf899d983218e15822c08d40d0e3;p=dealii.git

Fix compilation without p4est
---

diff --git a/source/dofs/dof_handler_policy.cc b/source/dofs/dof_handler_policy.cc
index dd07b27a90..6c53cfbce6 100644
--- a/source/dofs/dof_handler_policy.cc
+++ b/source/dofs/dof_handler_policy.cc
@@ -3499,6 +3499,7 @@ namespace internal
       {
 #ifndef DEAL_II_WITH_P4EST
         Assert (false, ExcNotImplemented());
+        return NumberCache();
 #else
         const unsigned int dim      = DoFHandlerType::dimension;
         const unsigned int spacedim = DoFHandlerType::space_dimension;
@@ -3702,9 +3703,8 @@ namespace internal
               }
         }
 #endif // DEBUG
-#endif // DEAL_II_WITH_P4EST
-
         return number_cache;
+#endif // DEAL_II_WITH_P4EST
       }