]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Get it right this time.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 7 Oct 2011 21:35:24 +0000 (21:35 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 7 Oct 2011 21:35:24 +0000 (21:35 +0000)
git-svn-id: https://svn.dealii.org/trunk@24562 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/base/symmetric_tensor.h

index fcbdb526cdb51f9def609acb7713c994dfcfddf6..450609fb6b62e61c62e2b2457230856ce1ace977 100644 (file)
@@ -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

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.