]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Use void() not Assert(NULL) to supress compiler warning.
authoryoung <young@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 13 Jan 2013 16:07:24 +0000 (16:07 +0000)
committeryoung <young@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 13 Jan 2013 16:07:24 +0000 (16:07 +0000)
git-svn-id: https://svn.dealii.org/trunk@28036 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/lac/slepc_solver.cc

index 7b218cd1324442bcd8fa2df356ffb1d78ab9e9a8..7f73e250e87c3c0c24697265e1ebfc05745a68ed 100644 (file)
@@ -375,12 +375,13 @@ namespace SLEPcWrappers
                              this->solver_control.max_steps());
     AssertThrow (ierr == 0, ExcSLEPcError(ierr));
 #else
-    // PETSc/SLEPc version must be > 3.1.0 (supress compiler warning
-    // by performing a void operation on eps).
+    // Supress compiler warnings about unused paameters.
+    (void) eps;
+
+    // PETSc/SLEPc version must be > 3.1.0.
     Assert (false,
             ExcMessage ("Your SLEPc installation does not include a copy of the "
                         "Generalized Davidson solver. A SLEPc version > 3.1.0 is required."));
-    Assert (eps, ExcSLEPcWrappersUsageError());
 #endif
   }
 
@@ -407,12 +408,13 @@ namespace SLEPcWrappers
                              this->solver_control.max_steps());
     AssertThrow (ierr == 0, ExcSLEPcError(ierr));
 #else
-    // PETSc/SLEPc version must be > 3.1.0 (supress compiler warning
-    // by performing a void operation on eps).
+    // Supress compiler warnings about unused paameters.
+    (void) eps;
+
+    // PETSc/SLEPc version must be > 3.1.0.
     Assert ((false),
             ExcMessage ("Your SLEPc installation does not include a copy of the "
                         "Jacobi-Davidson solver. A SLEPc version > 3.1.0 is required."));
-    Assert (eps, ExcSLEPcWrappersUsageError());
 #endif
   }
 

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.