]> https://gitweb.dealii.org/ - dealii.git/commitdiff
compile warnings and errors
authorTimo Heister <timo.heister@gmail.com>
Sun, 27 Sep 2015 11:14:15 +0000 (07:14 -0400)
committerTimo Heister <timo.heister@gmail.com>
Sun, 27 Sep 2015 11:21:30 +0000 (07:21 -0400)
include/deal.II/base/symmetric_tensor.h
source/base/logstream.cc
source/fe/mapping_q_generic.cc

index f24f57f880bbf87ace82c63f895b458c6f9ff495..e1de217faf533f5f5b419aae1bd42e470477c797 100644 (file)
@@ -1832,7 +1832,10 @@ namespace internal
               for (unsigned int e=d+1; e<dim; ++e, ++c)
                 if ((sorted_indices[0]==d) && (sorted_indices[1]==e))
                   return dim+c;
-            Assert (false, ExcNotImplemented());
+
+            // should never get here:
+            AssertThrow(false, ExcInternalError());
+            return 0;
           }
           }
       }
@@ -1931,6 +1934,10 @@ namespace internal
               for (unsigned int e=d+1; e<dim; ++e, ++c)
                 if (c==i)
                   return TableIndices<2>(d,e);
+
+            // should never get here:
+            AssertThrow(false, ExcInternalError());
+            return TableIndices<2>(0, 0);
           }
       }
 
index abd73a851f0c4341c6df315a83cfa9d33cedbc69..a12bed485ec3b21e7fa1fa5908c63e02311a1b13 100644 (file)
@@ -115,7 +115,7 @@ LogStream::test_mode(bool on)
   if (on)
     {
       double_threshold = 1.e-10;
-      float_threshold = 1.e-7;
+      float_threshold = 1.e-7f;
       offset = 1.e-7;
     }
   else
index eecbed99887e1e22eb90b6405217f2a832d80c92..edfd93f9f43b273ea07e87179cfe195c4edb5107 100644 (file)
@@ -1386,7 +1386,7 @@ namespace
    */
   Point<1>
   do_transform_real_to_unit_cell_internal
-  (const typename Triangulation<1,3>::cell_iterator &,
+  (const Triangulation<1,3>::cell_iterator &,
    const Point<3> &,
    const Point<1> &,
    MappingQGeneric<1,3>::InternalData &)

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.