summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2020-04-24 17:13:04 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2020-04-24 17:13:04 +0300
commita19782522b1eac52d72f5e787b5d96f1fd1a2cb7 (patch)
treeb4ca5cdfa19825db7cb2da5c3e88aae16700fd62
parentbe42004d3d860871a2df339ccb2f726827ea9ae2 (diff)
downloadmariadb-git-a19782522b1eac52d72f5e787b5d96f1fd1a2cb7.tar.gz
MDEV-14735: Fix -Wunused-const-variable
-rw-r--r--sql/sql_acl.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc
index 457120d518b..d210403a269 100644
--- a/sql/sql_acl.cc
+++ b/sql/sql_acl.cc
@@ -1,5 +1,5 @@
/* Copyright (c) 2000, 2018, Oracle and/or its affiliates.
- Copyright (c) 2009, 2019, MariaDB Corporation.
+ Copyright (c) 2009, 2020, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -62,11 +62,13 @@
bool mysql_user_table_is_in_short_password_format= false;
bool using_global_priv_table= true;
+#ifndef NO_EMBEDDED_ACCESS_CHECKS
// set that from field length in acl_load?
const uint max_hostname_length= 60;
const uint max_dbname_length= 64;
#include "sql_acl_getsort.ic"
+#endif
static LEX_CSTRING native_password_plugin_name= {
STRING_WITH_LEN("mysql_native_password")