]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix clang 10 warnings 9667/head
authorBruno Turcksin <bruno.turcksin@gmail.com>
Fri, 13 Mar 2020 20:16:05 +0000 (16:16 -0400)
committerBruno Turcksin <bruno.turcksin@gmail.com>
Fri, 13 Mar 2020 20:16:05 +0000 (16:16 -0400)
include/deal.II/base/mpi_compute_index_owner_internal.h
include/deal.II/lac/matrix_block.h
source/hp/dof_handler.cc

index 7ecce658dccf1f2b3be483d3cf6ed2465b64780d..5e144bfb395bc13b3bb791faade5a4438ce075b5 100644 (file)
@@ -648,7 +648,7 @@ namespace Utilities
             std::vector<unsigned int> &request_buffer) override
           {
             unsigned int owner_index = 0;
-            for (const auto interval : buffer_recv)
+            for (const auto &interval : buffer_recv)
               for (auto i = interval.first; i < interval.second; ++i)
                 {
                   const unsigned int actual_owner =
index 7aa930055e2e98ff787335b580907c8ffa910f0e..6de8495a67ed76c6d16cf46bbf9de0780d5a418e 100644 (file)
@@ -132,6 +132,12 @@ public:
    */
   MatrixBlock(const MatrixBlock<MatrixType> &M);
 
+  /**
+   * Assignment operator.
+   */
+  MatrixBlock<MatrixType> &
+  operator=(const MatrixBlock<MatrixType> &) = default;
+
   /**
    * Constructor setting block coordinates, but not initializing the matrix.
    */
index be33ba35e25d59265bd4e750cb8fdfbcefdad9d2..ef1af5af96b7805b8c3e95bb71f869cccb5af3c1 100644 (file)
@@ -2327,8 +2327,8 @@ namespace hp
     levels.clear();
     faces.reset();
 
-    vertex_dofs        = std::move(std::vector<types::global_dof_index>());
-    vertex_dof_offsets = std::move(std::vector<unsigned int>());
+    vertex_dofs        = std::vector<types::global_dof_index>();
+    vertex_dof_offsets = std::vector<unsigned int>();
   }
 } // namespace hp
 

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.