]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix warnings
authorSebastian Kinnewig <kinnewig@ifam.uni-hannover.de>
Sat, 28 Oct 2023 10:16:45 +0000 (12:16 +0200)
committerSebastian Kinnewig <kinnewig@ifam.uni-hannover.de>
Sat, 28 Oct 2023 10:36:18 +0000 (12:36 +0200)
include/deal.II/lac/trilinos_tpetra_vector.h
include/deal.II/lac/trilinos_tpetra_vector.templates.h

index 847c68869ba7833568e192b6b7d60386bc7ea4ae..50a037292f273c9328cf4cf12d8c6e58f11aa44a 100644 (file)
@@ -718,7 +718,7 @@ namespace LinearAlgebra
       /**
        * Return the mpi communicator
        */
-      const MPI_Comm
+      MPI_Comm
       mpi_comm() const;
 
       /** @} */
index 1546012d51499fff2d5942983f1c074ef4dd8fdd..6efa82c6ed72b9bd3cf02ca8303f79329547e9d7 100644 (file)
@@ -291,8 +291,8 @@ namespace LinearAlgebra
     Vector<Number>::import_elements(
       const ReadWriteVector<Number> &V,
       VectorOperation::values        operation,
-      const std::shared_ptr<const Utilities::MPI::CommunicationPatternBase>
-        &communication_pattern)
+      [[maybe_unused]] const std::shared_ptr<
+        const Utilities::MPI::CommunicationPatternBase> &communication_pattern)
     {
       import_elements(V, operation);
     }
@@ -731,7 +731,7 @@ namespace LinearAlgebra
 
 
     template <typename Number>
-    const MPI_Comm
+    MPI_Comm
     Vector<Number>::mpi_comm() const
     {
       MPI_Comm 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.