From: Alan T. DeKok Date: Mon, 5 Dec 2016 16:12:37 +0000 (-0500) Subject: debug-only check X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22553cd57e14d8283dbf0e37183e1c3397e2bcd8;p=thirdparty%2Ffreeradius-server.git debug-only check --- diff --git a/src/util/channel.c b/src/util/channel.c index 85b18cfb6d1..5d5aee41921 100644 --- a/src/util/channel.c +++ b/src/util/channel.c @@ -572,11 +572,13 @@ fr_channel_event_t fr_channel_service_kevent(int kq, struct kevent const *kev, f */ rad_assert(kq == ch->end[FROM_WORKER].kq); +#ifndef NDEBUG /* * Run-time sanity check. */ end = &ch->end[FROM_WORKER]; if (end->kq != kq) return FR_CHANNEL_ERROR; +#endif end = &ch->end[TO_WORKER];