Skip to content

Commit 4106974

Browse files
committed
Fixed some compiler warnings
1 parent 466069b commit 4106974

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sql/semisync_master.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@ int Repl_semi_sync_master::commit_trx(const char* trx_wait_binlog_name,
844844
int wait_result;
845845
PSI_stage_info old_stage;
846846
THD *thd= current_thd;
847-
bool aborted= 0;
847+
bool aborted __attribute__((unused)) = 0;
848848
set_timespec(start_ts, 0);
849849

850850
DEBUG_SYNC(thd, "rpl_semisync_master_commit_trx_before_lock");

sql/semisync_master_ack_receiver.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ class Ack_listener
186186
char buff[100];
187187
/* Clear the signal message */
188188
#ifndef _WIN32
189-
read(local_read_signal, buff, sizeof(buff));
189+
(void) !read(local_read_signal, buff, sizeof(buff));
190190
#else
191191
recv(local_read_signal, buff, sizeof(buff), 0);
192192
#endif /* _WIN32 */

0 commit comments

Comments
 (0)