]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix strict-prototypes warnings in MySQL
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 19 Nov 2017 10:56:49 +0000 (10:56 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 19 Nov 2017 10:56:49 +0000 (10:56 +0000)
src/modules/rlm_sql/drivers/rlm_sql_mysql/rlm_sql_mysql.c

index bb44bcaacc9307370d0e5c2df5b6b3875b81d330..880d8be0c2a8cf8b6cde8ee7bb2a57973c29024f 100644 (file)
@@ -38,12 +38,16 @@ RCSID("$Id$")
 #ifdef HAVE_MYSQL_MYSQL_H
 #  include <mysql/mysql_version.h>
 #  include <mysql/errmsg.h>
-#  include <mysql/mysql.h>
+DIAG_OFF(strict-prototypes)    /* Seen with homebrew mysql client 5.7.13 */
+#  include <mysql.h>
+DIAG_ON(strict-prototypes)
 #  include <mysql/mysqld_error.h>
 #elif defined(HAVE_MYSQL_H)
 #  include <mysql_version.h>
 #  include <errmsg.h>
+DIAG_OFF(strict-prototypes)    /* Seen with homebrew mysql client 5.7.13 */
 #  include <mysql.h>
+DIAG_ON(strict-prototypes)
 #  include <mysqld_error.h>
 #endif