summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2019-10-13 23:14:36 +0400
committerAlexander Barkov <bar@mariadb.com>2019-10-13 23:14:36 +0400
commitfa8437908ba55022d5f186d63dec4f01afb59746 (patch)
tree13f8d471d11a6fbd4335ef85deb27045826f11a0
parent9853026cec66b0e96e041a177c67e25c94908bea (diff)
downloadmariadb-git-fa8437908ba55022d5f186d63dec4f01afb59746.tar.gz
clang failed to compile the embedded library with unused constant errors
Putting "#ifndef NO_EMBEDDED_ACCESS_CHECKS" around these constant declarations: const uint max_hostname_length= 60; const uint max_dbname_length= 64;
-rw-r--r--sql/sql_acl.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc
index 6537f5ad1bc..ff8a2bebb8d 100644
--- a/sql/sql_acl.cc
+++ b/sql/sql_acl.cc
@@ -63,8 +63,10 @@ bool mysql_user_table_is_in_short_password_format= false;
bool using_global_priv_table= true;
// set that from field length in acl_load?
+#ifndef NO_EMBEDDED_ACCESS_CHECKS
const uint max_hostname_length= 60;
const uint max_dbname_length= 64;
+#endif
#include "sql_acl_getsort.ic"