From: Bruno Turcksin Date: Fri, 13 Mar 2020 20:16:05 +0000 (-0400) Subject: Fix clang 10 warnings X-Git-Tag: v9.2.0-rc1~416^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc4a46089059713cbb6ea185c90b5760cae1c785;p=dealii.git Fix clang 10 warnings --- 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