From 6e6c96f4a56b28d341eead73712650374619adfc Mon Sep 17 00:00:00 2001 From: bangerth Date: Fri, 7 Oct 2011 21:35:24 +0000 Subject: [PATCH] Get it right this time. git-svn-id: https://svn.dealii.org/trunk@24562 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/base/symmetric_tensor.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/deal.II/include/deal.II/base/symmetric_tensor.h b/deal.II/include/deal.II/base/symmetric_tensor.h index fcbdb526cd..450609fb6b 100644 --- a/deal.II/include/deal.II/base/symmetric_tensor.h +++ b/deal.II/include/deal.II/base/symmetric_tensor.h @@ -1731,7 +1731,8 @@ namespace internal Assert (false, ExcNotImplemented()); } - return Number(); + static Number dummy; + return dummy; } @@ -1829,7 +1830,13 @@ namespace internal return data[base_index[0]][base_index[1]]; } + + default: + Assert (false, ExcNotImplemented()); } + + static Number dummy; + return dummy; } } // end of namespace internal -- 2.39.5