From: Arran Cudbard-Bell Date: Mon, 6 Sep 2021 21:00:57 +0000 (-0500) Subject: UNUSED if buidling with EVENT_DEBUG X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da009bb2753ec09d4174c53e85d26422bd753767;p=thirdparty%2Ffreeradius-server.git UNUSED if buidling with EVENT_DEBUG --- diff --git a/src/lib/util/event.c b/src/lib/util/event.c index c74cafe8a28..24830dc51ba 100644 --- a/src/lib/util/event.c +++ b/src/lib/util/event.c @@ -1709,7 +1709,11 @@ int _fr_event_pid_wait(NDEBUG_LOCATION_ARGS /** Does the actual reaping of PIDs * */ -static void _fr_event_pid_reap_cb(UNUSED fr_event_list_t *el, pid_t pid, int status, void *uctx) +static void _fr_event_pid_reap_cb(UNUSED fr_event_list_t *el, pid_t pid, int status, +#ifndef EVENT_DEBUG + UNUSED +#endif + void *uctx) { waitpid(pid, &status, WNOHANG); /* Don't block the process if there's a logic error somewhere */