Skip to content

Commit

Permalink
call fr_worker_verify only when WITH_VERIFY_PTR is set
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Dec 9, 2019
1 parent eecb455 commit 630a3f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/io/worker.c
Expand Up @@ -78,7 +78,7 @@ typedef struct {
fr_heap_t *heap; //!< heap, ordered by priority
} fr_worker_heap_t;

#ifndef NDEBUG
#ifdef WITH_VERIFY_PTR
static void fr_worker_verify(fr_worker_t *worker);
#define WORKER_VERIFY fr_worker_verify(worker)
#else
Expand Down Expand Up @@ -1564,7 +1564,7 @@ void fr_worker_name(fr_worker_t *worker, char const *name)
}


#ifndef NDEBUG
#ifdef WITH_VERIFY_PTR
/** Verify the worker data structures.
*
* @param[in] worker the worker
Expand Down

0 comments on commit 630a3f8

Please sign in to comment.