diff options
author | Daniel Black <grooverdan@users.sourceforge.net> | 2017-04-30 13:58:18 +1000 |
---|---|---|
committer | Daniel Black <grooverdan@users.sourceforge.net> | 2017-04-30 14:00:43 +1000 |
commit | 3d4882feb280330b2adc571626fcbb22e267ed9f (patch) | |
tree | 02d2f7805fcc1d52b3eb93e88eacda8f79158d69 /sql/sql_class.cc | |
parent | 935a1c676e1fbfea7950d69c410a59a29a50857a (diff) | |
download | mariadb-git-3d4882feb280330b2adc571626fcbb22e267ed9f.tar.gz |
Remove compile warning - "this" canot be null
/home/travis/build/MariaDB/server/sql/sql_class.cc:1941:15: warning: 'this' pointer cannot be null in well-defined C++ code; pointer may be assumed to always convert to true [-Wundefined-bool-conversion]
if (this && WSREP(this) && wsrep_thd_is_BF(this, FALSE))
^~~~ ~~
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r-- | sql/sql_class.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc index eeac6ef1eee..68006b7c1e9 100644 --- a/sql/sql_class.cc +++ b/sql/sql_class.cc @@ -2011,7 +2011,7 @@ bool THD::notify_shared_lock(MDL_context_owner *ctx_in_use, if (!thd_table->needs_reopen()) { signalled|= mysql_lock_abort_for_thread(this, thd_table); - if (this && WSREP(this) && wsrep_thd_is_BF(this, FALSE)) + if (WSREP(this) && wsrep_thd_is_BF(this, FALSE)) { WSREP_DEBUG("remove_table_from_cache: %llu", (unsigned long long) this->real_id); |