summaryrefslogtreecommitdiff
path: root/sql/slave.cc
diff options
context:
space:
mode:
authorunknown <mats@romeo.(none)>2007-03-27 17:45:23 +0200
committerunknown <mats@romeo.(none)>2007-03-27 17:45:23 +0200
commit04c0f3cb6a40284962854e6859ededf1eb227084 (patch)
tree296709c9cf27b7d88fa67f64316bfd12ef149479 /sql/slave.cc
parent47d5ed7f2b493e0c9eb20d46d6eab3e8f3651653 (diff)
downloadmariadb-git-04c0f3cb6a40284962854e6859ededf1eb227084.tar.gz
Eliminating some compiler warnings.
sql/log_event.cc: Adding non-reachable return statement at end of function to keep compiler happy. sql/slave.cc: In order to keep compiler happy: using variable only used in debug code instead of recalling virtual function.
Diffstat (limited to 'sql/slave.cc')
-rw-r--r--sql/slave.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/slave.cc b/sql/slave.cc
index 278edae99f4..55a774fd747 100644
--- a/sql/slave.cc
+++ b/sql/slave.cc
@@ -1722,7 +1722,7 @@ static int exec_relay_log_event(THD* thd, RELAY_LOG_INFO* rli)
}
if (ev)
{
- int type_code = ev->get_type_code();
+ int const type_code= ev->get_type_code();
int exec_res= 0;
/*
@@ -1828,7 +1828,7 @@ static int exec_relay_log_event(THD* thd, RELAY_LOG_INFO* rli)
used to read info about the relay log's format; it will be deleted when
the SQL thread does not need it, i.e. when this thread terminates.
*/
- if (ev->get_type_code() != FORMAT_DESCRIPTION_EVENT)
+ if (type_code != FORMAT_DESCRIPTION_EVENT)
{
DBUG_PRINT("info", ("Deleting the event after it has been executed"));
delete ev;