]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix non-debug builds in event.c
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 1 May 2020 14:07:46 +0000 (09:07 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 1 May 2020 14:07:46 +0000 (09:07 -0500)
src/lib/util/event.c

index cf13547a8bc820d4d978e64580ff3bafbc8388de..d2066fbcfb841c82518cb5f4f2fe9dae6cd2571b 100644 (file)
@@ -44,6 +44,14 @@ RCSID("$Id$")
 #include <sys/stat.h>
 #include <sys/wait.h>
 
+#ifdef NDEBUG
+/*
+ *     Turn off documentation warnings as file/line
+ *     args aren't used for non-debug builds.
+ */
+DIAG_OFF(documentation)
+#endif
+
 #define FR_EV_BATCH_FDS (256)
 
 DIAG_OFF(unused-macros)