]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix compiler warnings 8661/head
authorDaniel Arndt <arndtd@ornl.gov>
Sat, 30 Nov 2019 18:55:22 +0000 (13:55 -0500)
committerDaniel Arndt <arndtd@ornl.gov>
Sat, 30 Nov 2019 18:58:55 +0000 (13:58 -0500)
include/deal.II/fe/fe_interface_values.h

index 9e611039cc13b5dac06a49c46008c7b6bdff335a..babb2ebf5caad24bc14fa3861d7d4f38daa070c3 100644 (file)
@@ -145,7 +145,7 @@ public:
   /**
    * Return the update flags set.
    */
-  const UpdateFlags
+  UpdateFlags
   get_update_flags() const;
 
   /**
@@ -480,7 +480,7 @@ FEInterfaceValues<dim, spacedim>::reinit(
     for (auto &x : tempmap)
       {
         interface_dof_indices[idx] = x.first;
-        dofmap[idx]                = {x.second.first, x.second.second};
+        dofmap[idx]                = {{x.second.first, x.second.second}};
         ++idx;
       }
   }
@@ -506,7 +506,7 @@ FEInterfaceValues<dim, spacedim>::reinit(const CellIteratorType &cell,
 
   for (unsigned int i = 0; i < interface_dof_indices.size(); ++i)
     {
-      dofmap[i] = {i, numbers::invalid_unsigned_int};
+      dofmap[i] = {{i, numbers::invalid_unsigned_int}};
     }
 }
 
@@ -555,7 +555,7 @@ FEInterfaceValues<dim, spacedim>::get_quadrature_points() const
 
 
 template <int dim, int spacedim>
-const UpdateFlags
+UpdateFlags
 FEInterfaceValues<dim, spacedim>::get_update_flags() const
 {
   return internal_fe_face_values.get_update_flags();

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.