]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Avoid a couple of warnings.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 19 Aug 2012 23:00:16 +0000 (23:00 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 19 Aug 2012 23:00:16 +0000 (23:00 +0000)
git-svn-id: https://svn.dealii.org/trunk@26020 0785d39b-7218-0410-832d-ea1e28bc413d

tests/mpi/collective_02.cc
tests/mpi/collective_03.cc

index 4f1cc1ea932d23775cb34f58d81efd5309c86d6a..577c5a1f178b7c4038c0928b891797da27de0513 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 2009, 2010, 2011 by the deal.II authors
+//    Copyright (C) 2009, 2010, 2011, 2012 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -24,7 +24,11 @@ void test()
   unsigned int myid = Utilities::MPI::this_mpi_process (MPI_COMM_WORLD);
   const unsigned int numprocs = Utilities::MPI::n_mpi_processes (MPI_COMM_WORLD);
 
-  int int_sum, uint_sum, double_sum, float_sum;
+  int int_sum;
+  unsigned int uint_sum;
+  double double_sum;
+  float float_sum;
+
   int_sum
     =
     Utilities::MPI::sum<int>(myid+1,
index 89a6bee8a7b6b924694a923a3cf3e813b99ac6dd..0fa7e1eceb8edc4a840d3406d412c1172c7df167 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 2009, 2010, 2011 by the deal.II authors
+//    Copyright (C) 2009, 2010, 2011, 2012 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -24,7 +24,11 @@ void test()
   unsigned int myid = Utilities::MPI::this_mpi_process (MPI_COMM_WORLD);
   const unsigned int numprocs = Utilities::MPI::n_mpi_processes (MPI_COMM_WORLD);
 
-  int int_sum, uint_sum, double_sum, float_sum;
+  int int_sum;
+  unsigned int uint_sum;
+  double double_sum;
+  float float_sum;
+
   int_sum
     =
     Utilities::MPI::max<int>(myid+1,

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.