From: Alan T. DeKok Date: Thu, 19 Oct 2017 18:29:26 +0000 (-0400) Subject: ifdef out variables for assertions X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f716118d4dec38e4575ef0f89f5deaba3865ca4a;p=thirdparty%2Ffreeradius-server.git ifdef out variables for assertions --- diff --git a/src/main/unlang_interpret.c b/src/main/unlang_interpret.c index 9e7a2b4223a..57457bc70c0 100644 --- a/src/main/unlang_interpret.c +++ b/src/main/unlang_interpret.c @@ -2771,6 +2771,7 @@ void unlang_resumable(REQUEST *request) rad_assert(request->backlog == NULL); rad_assert(request->runnable_id < 0); +#ifndef NDEBUG /* * Look at the current stack. */ @@ -2782,6 +2783,7 @@ void unlang_resumable(REQUEST *request) * order for someone to mark it resumable. */ rad_assert(frame->instruction->type == UNLANG_TYPE_RESUME); +#endif /* * Now look at the parents stack. It also must @@ -2823,6 +2825,8 @@ void unlang_resumable(REQUEST *request) parent = parent->parent; } + +#ifndef NDEBUG /* * The current request MUST have been yielded in * order for someone to mark it resumable. @@ -2830,6 +2834,7 @@ void unlang_resumable(REQUEST *request) stack = request->stack; frame = &stack->frame[stack->depth]; rad_assert(frame->instruction->type == UNLANG_TYPE_RESUME); +#endif rad_assert(request->backlog != NULL); fr_heap_insert(request->backlog, request);