diff options
author | Monty <monty@mariadb.org> | 2015-11-02 10:35:59 +0200 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2015-11-10 13:46:56 +0200 |
commit | cb4737cb4e7df6c43de9d47483f17f8e2e7fa24b (patch) | |
tree | 0cc71bcbc3645633b9b743f2c6029f03d6481efa /plugin | |
parent | 7cd2095cde11af4ac0478c5ff9a221a832e23586 (diff) | |
download | mariadb-git-cb4737cb4e7df6c43de9d47483f17f8e2e7fa24b.tar.gz |
Fixed compiler warning
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/simple_password_check/simple_password_check.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugin/simple_password_check/simple_password_check.c b/plugin/simple_password_check/simple_password_check.c index af11046a08a..d47653aee06 100644 --- a/plugin/simple_password_check/simple_password_check.c +++ b/plugin/simple_password_check/simple_password_check.c @@ -48,8 +48,9 @@ static int validate(MYSQL_LEX_STRING *username, MYSQL_LEX_STRING *password) others < min_others; } -static void fix_min_length(MYSQL_THD thd, struct st_mysql_sys_var *var, - void *var_ptr, const void *save) +static void fix_min_length(MYSQL_THD thd __attribute__((unused)), + struct st_mysql_sys_var *var, + void *var_ptr, const void *save) { *((unsigned int *)var_ptr)= *((unsigned int *)save); if (min_length < min_digits + 2 * min_letters + min_others) |