Browse Source

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;
10.5-circular-buffer
Alexander Barkov 6 years ago
parent
commit
fa8437908b
  1. 2
      sql/sql_acl.cc

2
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"

Loading…
Cancel
Save