From bc4a46089059713cbb6ea185c90b5760cae1c785 Mon Sep 17 00:00:00 2001 From: Bruno Turcksin Date: Fri, 13 Mar 2020 16:16:05 -0400 Subject: [PATCH] Fix clang 10 warnings --- include/deal.II/base/mpi_compute_index_owner_internal.h | 2 +- include/deal.II/lac/matrix_block.h | 6 ++++++ source/hp/dof_handler.cc | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/include/deal.II/base/mpi_compute_index_owner_internal.h b/include/deal.II/base/mpi_compute_index_owner_internal.h index 7ecce658dc..5e144bfb39 100644 --- a/include/deal.II/base/mpi_compute_index_owner_internal.h +++ b/include/deal.II/base/mpi_compute_index_owner_internal.h @@ -648,7 +648,7 @@ namespace Utilities std::vector &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 = diff --git a/include/deal.II/lac/matrix_block.h b/include/deal.II/lac/matrix_block.h index 7aa930055e..6de8495a67 100644 --- a/include/deal.II/lac/matrix_block.h +++ b/include/deal.II/lac/matrix_block.h @@ -132,6 +132,12 @@ public: */ MatrixBlock(const MatrixBlock &M); + /** + * Assignment operator. + */ + MatrixBlock & + operator=(const MatrixBlock &) = default; + /** * Constructor setting block coordinates, but not initializing the matrix. */ diff --git a/source/hp/dof_handler.cc b/source/hp/dof_handler.cc index be33ba35e2..ef1af5af96 100644 --- a/source/hp/dof_handler.cc +++ b/source/hp/dof_handler.cc @@ -2327,8 +2327,8 @@ namespace hp levels.clear(); faces.reset(); - vertex_dofs = std::move(std::vector()); - vertex_dof_offsets = std::move(std::vector()); + vertex_dofs = std::vector(); + vertex_dof_offsets = std::vector(); } } // namespace hp -- 2.39.5