From: Wolfgang Bangerth Date: Fri, 7 Oct 2011 21:35:24 +0000 (+0000) Subject: Get it right this time. X-Git-Tag: v8.0.0~3258 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f96a9d0b5e7fafbeec63a2f472161bc9ecf3905;p=dealii.git Get it right this time. git-svn-id: https://svn.dealii.org/trunk@24562 0785d39b-7218-0410-832d-ea1e28bc413d --- 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