Skip to content

Commit

Permalink
quiet compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Dec 26, 2024
1 parent 349b3f0 commit faf157d
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/modules/rlm_radius/bio.c
Original file line number Diff line number Diff line change
Expand Up @@ -2089,7 +2089,7 @@ static void request_conn_release(connection_t *conn, void *preq_to_reset, UNUSED
/** Write out a canned failure
*
*/
static void request_fail(request_t *request, void *preq, void *rctx,
static void request_fail(request_t *request, NDEBUG_UNUSED void *preq, void *rctx,
NDEBUG_UNUSED trunk_request_state_t state, UNUSED void *uctx)
{
bio_request_t *u = talloc_get_type_abort(rctx, bio_request_t);
Expand All @@ -2111,7 +2111,7 @@ static void request_fail(request_t *request, void *preq, void *rctx,
/** Response has already been written to the rctx at this point
*
*/
static void request_complete(request_t *request, void *preq, void *rctx, UNUSED void *uctx)
static void request_complete(request_t *request, NDEBUG_UNUSED void *preq, void *rctx, UNUSED void *uctx)
{
bio_request_t *u = talloc_get_type_abort(rctx, bio_request_t);

Expand Down Expand Up @@ -2219,12 +2219,15 @@ static void do_signal(rlm_radius_t const *inst, bio_request_t *u, UNUSED request
*/
static int _bio_request_free(bio_request_t *u)
{
trunk_request_t *treq;

if (!u->treq) return 0;

treq = talloc_get_type_abort(u->treq, trunk_request_t);
fr_assert(treq->preq == u);
#ifndef NDEBUG
{
trunk_request_t *treq;
treq = talloc_get_type_abort(u->treq, trunk_request_t);
fr_assert(treq->preq == u);
}
#endif

fr_assert_msg(!u->ev, "bio_request_t freed with active timer");

Expand Down

0 comments on commit faf157d

Please sign in to comment.