mirror of
https://github.com/MariaDB/server.git
synced 2026-04-20 23:35:32 +02:00
Fixed compiler warning
This commit is contained in:
parent
7cd2095cde
commit
cb4737cb4e
1 changed files with 3 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue