From b8e840e81e9ef7cf853fbe3d56bbda61d4ab12da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A5rd=20Skaflestad?= Date: Fri, 1 Feb 2013 16:15:35 +0100 Subject: [PATCH] Eliminate release-mode build warning. The 'cbottom' variable is only used within an assert(). Don't define the variable in release (i.e., "NDEBUG") mode. --- opm/core/transport/reorder/tarjan.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/opm/core/transport/reorder/tarjan.c b/opm/core/transport/reorder/tarjan.c index 49d803847..8d02c4b54 100644 --- a/opm/core/transport/reorder/tarjan.c +++ b/opm/core/transport/reorder/tarjan.c @@ -79,7 +79,11 @@ tarjan (int nv, const int *ia, const int *ja, int *vert, int *comp, int *stack = comp + nv; int *bottom = stack; int *cstack = vert + nv-1; + +#if !defined(NDEBUG) int *cbottom = cstack; +#endif + int t = 0; int pos = 0;