From: bangerth Date: Fri, 7 Oct 2011 21:35:24 +0000 (+0000) Subject: Get it right this time. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e6c96f4a56b28d341eead73712650374619adfc;p=dealii-svn.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