From 7c43841a17aeb5d99fbd58a0d411c5317cdb3a7a Mon Sep 17 00:00:00 2001
From: Christoph Lehmann <christoph.lehmann@ufz.de>
Date: Sat, 30 Apr 2016 15:43:24 +0200
Subject: [PATCH] [NL] disabled warning

---
 NumLib/Function/Interpolation.h         | 2 +-
 NumLib/ODESolver/NonlinearSolver-impl.h | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/NumLib/Function/Interpolation.h b/NumLib/Function/Interpolation.h
index b687665798b..655e4a29bd0 100644
--- a/NumLib/Function/Interpolation.h
+++ b/NumLib/Function/Interpolation.h
@@ -79,7 +79,7 @@ void shapeFunctionInterpolate(
     auto const num_nodes = shape_matrix_N.size();
 
     assert(num_nodes*num_nodal_dof == nodal_values.size());
-    (void) num_nodal_dof; // no warnings when not in debug build
+    (void) num_nodal_dof; (void) num_nodes; // no warnings when not in debug build
 
     detail::shapeFunctionInterpolate<0>(nodal_values, shape_matrix_N, interpolated_value,
                                         interpolated_values...);
diff --git a/NumLib/ODESolver/NonlinearSolver-impl.h b/NumLib/ODESolver/NonlinearSolver-impl.h
index 6a5346f645f..cc7c2dc7c07 100644
--- a/NumLib/ODESolver/NonlinearSolver-impl.h
+++ b/NumLib/ODESolver/NonlinearSolver-impl.h
@@ -209,6 +209,7 @@ solve(Vector &x)
 
         auto const error_dx = BLAS::norm2(minus_delta_x);
         DBUG("error of -delta_x %g and of residual %g,", error_dx, error_res);
+        (void) error_res; // avoid compiler warning when not in debug build
 
         if (error_dx < _tol) {
             error_norms_met = true;
-- 
GitLab