]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Avoid two Clang warnings.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 21 Aug 2011 00:47:01 +0000 (00:47 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 21 Aug 2011 00:47:01 +0000 (00:47 +0000)
git-svn-id: https://svn.dealii.org/trunk@24141 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/base/data_out_base.cc

index 84684b67116386f22c678bca0c092d15dc202e6b..b7f4f2e248f3d86a1aaea3c29f7966d716b63df9 100644 (file)
@@ -330,6 +330,12 @@ namespace
            case 1:
                  Assert (xstep<n_subdivisions+1, ExcIndexRange(xstep,0,n_subdivisions+1));
                  point_no+=xstep;
+
+                                                  // break here for dim<=3
+                 break;
+
+           default:
+                 Assert (false, ExcNotImplemented());
          }
        for (unsigned int d=0; d<spacedim; ++d)
          node[d]=patch->data(patch->data.size(0)-spacedim+d,point_no);
@@ -5968,7 +5974,7 @@ operator >> (std::istream                     &in,
 #define INSTANTIATE(dim,spacedim) \
   template class DataOutInterface<dim,spacedim>;                \
   template class DataOutReader<dim,spacedim>;                   \
-  template class DataOutBase::Patch<dim,spacedim>;              \
+  template struct DataOutBase::Patch<dim,spacedim>;              \
   template                                                      \
   std::ostream &                                                \
   operator << (std::ostream                           &out,     \

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.