Commit fa51a223 authored by Michael Widenius's avatar Michael Widenius

Fixed compiler warnings

parent e36d6f03
......@@ -1020,8 +1020,9 @@ Log_event::do_shall_skip(rpl_group_info *rgi)
Relay_log_info *rli= rgi->rli;
DBUG_PRINT("info", ("ev->server_id: %lu, ::server_id: %lu,"
" rli->replicate_same_server_id: %d,"
" rli->slave_skip_counter: %lu",
(ulong) server_id, (ulong) global_system_variables.server_id,
" rli->slave_skip_counter: %llu",
(ulong) server_id,
(ulong) global_system_variables.server_id,
rli->replicate_same_server_id,
rli->slave_skip_counter));
if ((server_id == global_system_variables.server_id &&
......
......@@ -578,7 +578,7 @@ bool ARRAY::CanBeShort(void)
/***********************************************************************/
int ARRAY::Convert(PGLOBAL g, int k, PVAL vp)
{
int i, prec = 0;
int i;
bool b = FALSE;
PMBV ovblk = Valblk;
PVBLK ovblp = Vblp;
......@@ -588,7 +588,6 @@ int ARRAY::Convert(PGLOBAL g, int k, PVAL vp)
switch (Type) {
case TYPE_DOUBLE:
prec = 2;
case TYPE_SHORT:
case TYPE_INT:
case TYPE_DATE:
......
......@@ -905,7 +905,7 @@ bool TDBMYSQL::OpenDB(PGLOBAL g)
} // endif MakeInsert
if (m_Rc != RC_FX) {
int rc;
int rc __attribute__((unused));
char cmd[64];
int w;
......
......@@ -411,7 +411,7 @@ bool XINDEX::Make(PGLOBAL g, PIXDEF sxp)
kcp = new(g) KXYCOL(this);
if (kcp->Init(g, colp, n, true, NULL))
if (kcp->Init(g, colp, n, true, 0))
return true;
if (trace)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment