Skip to content

Commit 09b28b3

Browse files
author
Jan Lindström
committed
Fix compiler warnings on gcc 6.x.
1 parent 4b1cf0b commit 09b28b3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

sql/sql_class.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2177,7 +2177,7 @@ bool THD::notify_shared_lock(MDL_context_owner *ctx_in_use,
21772177
#ifdef WITH_WSREP
21782178
{
21792179
signalled|= mysql_lock_abort_for_thread(this, thd_table);
2180-
if (this && WSREP(this) && wsrep_thd_is_BF((void *)this, FALSE))
2180+
if (WSREP(this) && wsrep_thd_is_BF((void *)this, FALSE))
21812181
{
21822182
WSREP_DEBUG("remove_table_from_cache: %llu",
21832183
(unsigned long long) this->real_id);

sql/wsrep_mysqld.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ extern wsrep_seqno_t wsrep_locked_seqno;
207207
strcmp(wsrep_provider, WSREP_NONE))
208208

209209
#define WSREP(thd) \
210-
(WSREP_ON && wsrep && (thd && thd->variables.wsrep_on))
210+
(WSREP_ON && wsrep && (thd->variables.wsrep_on))
211211

212212
#define WSREP_CLIENT(thd) \
213213
(WSREP(thd) && thd->wsrep_client_thread)

sql/wsrep_sst.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ static int sst_donate_mysqldump (const char* addr,
814814
"%s",
815815
host, port, mysqld_port, mysqld_unix_port,
816816
wsrep_defaults_file, uuid_str,
817-
(long long)seqno, bypass ? " "WSREP_SST_OPT_BYPASS : "");
817+
(long long)seqno, bypass ? " " WSREP_SST_OPT_BYPASS : "");
818818

819819
if (ret < 0 || ret >= cmd_len)
820820
{
@@ -1125,7 +1125,7 @@ static int sst_donate_other (const char* method,
11251125
wsrep_defaults_file, wsrep_defaults_group_suffix,
11261126
binlog_opt, binlog_opt_val,
11271127
uuid, (long long) seqno,
1128-
bypass ? " "WSREP_SST_OPT_BYPASS : "");
1128+
bypass ? " " WSREP_SST_OPT_BYPASS : "");
11291129
my_free(binlog_opt_val);
11301130

11311131
if (ret < 0 || ret >= cmd_len)

0 commit comments

Comments
 (0)