summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorDavi Arnaut <Davi.Arnaut@Sun.COM>2010-05-31 12:29:54 -0300
committerDavi Arnaut <Davi.Arnaut@Sun.COM>2010-05-31 12:29:54 -0300
commit5dec0c963713822cafc5f2f65b485e8846938318 (patch)
treebbbd0851e788a87bdf80dacc828f8de102b381b4 /plugin
parent7e84f28c74e6e75f2093fa7e21b6a2b3781b9fe9 (diff)
downloadmariadb-git-5dec0c963713822cafc5f2f65b485e8846938318.tar.gz
Bug#53445: Build with -Wall and fix warnings that it generates
Fix various mismatches between function's language linkage. Any particular function that is declared in C++ but should be callable from C must have C linkage. Note that function types with different linkages are also distinct. Thus, if a function type is declared in C code, it will have C linkage (same if declared in a extern "C" block).
Diffstat (limited to 'plugin')
-rw-r--r--plugin/semisync/semisync_master_plugin.cc4
-rw-r--r--plugin/semisync/semisync_slave_plugin.cc3
2 files changed, 7 insertions, 0 deletions
diff --git a/plugin/semisync/semisync_master_plugin.cc b/plugin/semisync/semisync_master_plugin.cc
index d6cc23a43b7..a55ba184a17 100644
--- a/plugin/semisync/semisync_master_plugin.cc
+++ b/plugin/semisync/semisync_master_plugin.cc
@@ -20,6 +20,8 @@
ReplSemiSyncMaster repl_semisync;
+C_MODE_START
+
int repl_semi_report_binlog_update(Binlog_storage_param *param,
const char *log_file,
my_off_t log_pos, uint32 flags)
@@ -145,6 +147,8 @@ int repl_semi_reset_master(Binlog_transmit_param *param)
return 0;
}
+C_MODE_END
+
/*
semisync system variables
*/
diff --git a/plugin/semisync/semisync_slave_plugin.cc b/plugin/semisync/semisync_slave_plugin.cc
index 66073f8a5e6..5aa32cdfd5f 100644
--- a/plugin/semisync/semisync_slave_plugin.cc
+++ b/plugin/semisync/semisync_slave_plugin.cc
@@ -29,6 +29,8 @@ ReplSemiSyncSlave repl_semisync;
*/
bool semi_sync_need_reply= false;
+C_MODE_START
+
int repl_semi_reset_slave(Binlog_relay_IO_param *param)
{
// TODO: reset semi-sync slave status here
@@ -124,6 +126,7 @@ int repl_semi_slave_io_end(Binlog_relay_IO_param *param)
return repl_semisync.slaveStop(param);
}
+C_MODE_END
static void fix_rpl_semi_sync_slave_enabled(MYSQL_THD thd,
SYS_VAR *var,