]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Quiet compilation warnings
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 13 Jul 2018 12:49:35 +0000 (08:49 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 13 Jul 2018 12:49:35 +0000 (08:49 -0400)
src/bin/radmin.c

index 368d746994e2f63fc8d99af6b0ca5aa4e255ff1e..e0d03c7477123b9ca6028245ac03e688f433498c 100644 (file)
@@ -32,6 +32,10 @@ RCSID("$Id$")
 
 #ifdef HAVE_LIBREADLINE
 
+/*
+ *     Readline headers aren't compliant
+ */
+DIAG_OFF(strict-prototypes)
 # include <stdio.h>
 #if defined(HAVE_READLINE_READLINE_H)
 #  include <readline/readline.h>
@@ -51,6 +55,7 @@ RCSID("$Id$")
 #endif /* defined(HAVE_READLINE_HISTORY_H) */
 #endif /* HAVE_READLINE_HISTORY */
 #endif /* HAVE_LIBREADLINE */
+DIAG_ON(strict-prototypes)
 
 static pthread_t pthread_id;
 static bool stop = false;