]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
UNUSED if buidling with EVENT_DEBUG
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 6 Sep 2021 21:00:57 +0000 (16:00 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 6 Sep 2021 21:00:57 +0000 (16:00 -0500)
src/lib/util/event.c

index c74cafe8a28b195776fb23a58f1d52c5245899d4..24830dc51ba63f68b40a62a6c525aee2c70778ee 100644 (file)
@@ -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 */