]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove a few compiler warnings.
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Sun, 22 Nov 2009 15:46:46 +0000 (15:46 +0000)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Sun, 22 Nov 2009 15:46:46 +0000 (15:46 +0000)
git-svn-id: https://svn.dealii.org/trunk@20145 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/source/trilinos_sparse_matrix.cc
deal.II/lac/source/trilinos_sparsity_pattern.cc
deal.II/lac/source/trilinos_vector.cc

index 695c0791cd0a71d3d01112111daf74fc1d345892..94de3a0f70833e8e0389fe852fb21a4f8568b9e5 100644 (file)
@@ -184,7 +184,7 @@ namespace TrilinosWrappers
                                   // available when entries have been added
                  matrix (std::auto_ptr<Epetra_FECrsMatrix>
                          (new Epetra_FECrsMatrix(Copy,
-                                                 Epetra_Map (n, 0,
+                                                 Epetra_Map (m, 0,
                                                              Utilities::Trilinos::comm_self()),
                                                  *column_space_map,
                                                  n_max_entries_per_row,
@@ -204,7 +204,7 @@ namespace TrilinosWrappers
                                                     Utilities::Trilinos::comm_self()))),
                  matrix (std::auto_ptr<Epetra_FECrsMatrix>
                          (new Epetra_FECrsMatrix(Copy,
-                                                 Epetra_Map (n, 0,
+                                                 Epetra_Map (m, 0,
                                                              Utilities::Trilinos::comm_self()),
                                                  *column_space_map,
                           (int*)const_cast<unsigned int*>(&(n_entries_per_row[0])),
index 3ee3bb103e6127e3ca318200a15dfd5b7c8c4492..4d2c07ee3e0f5bd157236be683692d4ddbc58906 100644 (file)
@@ -507,7 +507,7 @@ namespace TrilinosWrappers
 
 
   void
-  SparsityPattern::operator = (const SparsityPattern &sp)
+  SparsityPattern::operator = (const SparsityPattern &)
   {
     Assert (false, ExcNotImplemented());
   }
index 5d56402d89df67610d69e2e68dbc57dc244d5bc0..00795b8c23ff7545957df7e57100af039dc66cc2 100644 (file)
@@ -341,6 +341,7 @@ namespace TrilinosWrappers
                         Epetra_MpiComm(communicator));
 #else
                          Epetra_SerialComm());
+    (void)communicator;
 #endif
     vector = std::auto_ptr<Epetra_FEVector> (new Epetra_FEVector(map));
   }
@@ -436,6 +437,7 @@ namespace TrilinosWrappers
                             Epetra_MpiComm(communicator));
 #else
                              Epetra_SerialComm());
+        (void)communicator;
 #endif
        vector = std::auto_ptr<Epetra_FEVector> (new Epetra_FEVector(map));
       }

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.