summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2017-12-02 21:50:08 +0200
committerMonty <monty@mariadb.org>2017-12-03 13:58:36 +0200
commit60df17e95ad7239e087f2c71a16b79a129755032 (patch)
treea00cb03ec23f7fb9e7f9000164305bde03af90a5 /plugin
parent52ca07c2a0977f74ccfb56363e4158f0bd0ad3a0 (diff)
downloadmariadb-git-60df17e95ad7239e087f2c71a16b79a129755032.tar.gz
Remove compiler warnings
Diffstat (limited to 'plugin')
-rw-r--r--plugin/simple_password_check/simple_password_check.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugin/simple_password_check/simple_password_check.c b/plugin/simple_password_check/simple_password_check.c
index dd4051e8169..445ed621e74 100644
--- a/plugin/simple_password_check/simple_password_check.c
+++ b/plugin/simple_password_check/simple_password_check.c
@@ -15,6 +15,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
#include <mysqld_error.h>
+#include <my_attribute.h>
#include <mysql/plugin_password_validation.h>
#include <ctype.h>
#include <string.h>
@@ -50,7 +51,9 @@ static int validate(MYSQL_CONST_LEX_STRING *username,
others < min_others;
}
-static void fix_min_length(MYSQL_THD thd, struct st_mysql_sys_var *var,
+static void fix_min_length(MYSQL_THD thd __attribute__((unused)),
+ struct st_mysql_sys_var *var
+ __attribute__((unused)),
void *var_ptr, const void *save)
{
unsigned int new_min_length;