diff options
author | Sergei Golubchik <serg@mariadb.org> | 2017-10-22 13:18:38 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2017-10-22 14:51:45 +0200 |
commit | 2aa51f528fd5d23cc54eca8fbd07e88e7b2993c7 (patch) | |
tree | 307e5e223ff4f1a76fa219e4bb8f8f8add91bc39 /sql/sql_acl.cc | |
parent | 9d2e2d753323a934604d25144b9d1ecaf34b47d8 (diff) | |
download | mariadb-git-2aa51f528fd5d23cc54eca8fbd07e88e7b2993c7.tar.gz |
Various compier warnings
gcc 5.4 and 7.1, Debug and Release builds
Diffstat (limited to 'sql/sql_acl.cc')
-rw-r--r-- | sql/sql_acl.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc index 0c7e3856e00..5ccc5f75118 100644 --- a/sql/sql_acl.cc +++ b/sql/sql_acl.cc @@ -634,9 +634,6 @@ bool ROLE_GRANT_PAIR::init(MEM_ROOT *mem, char *username, char *hostname, char *rolename, bool with_admin_option) { - if (!this) - return true; - size_t uname_l = safe_strlen(username); size_t hname_l = safe_strlen(hostname); size_t rname_l = safe_strlen(rolename); @@ -10516,7 +10513,6 @@ bool check_role_is_granted(const char *username, DBUG_RETURN(result); } - int fill_schema_enabled_roles(THD *thd, TABLE_LIST *tables, COND *cond) { TABLE *table= tables->table; |