Commit 7405e779 authored by unknown's avatar unknown

Move the reconnect variable to beginning of function

Fix warning about value from "*ptr++" not being used. Changed it to ptr++ 

parent 84617169
...@@ -2709,12 +2709,12 @@ char *get_string(char **to_ptr, char **from_ptr, ...@@ -2709,12 +2709,12 @@ char *get_string(char **to_ptr, char **from_ptr,
void set_reconnect(MYSQL* mysql, int val) void set_reconnect(MYSQL* mysql, int val)
{ {
my_bool reconnect= val;
DBUG_ENTER("set_reconnect"); DBUG_ENTER("set_reconnect");
DBUG_PRINT("info", ("val: %d", val)); DBUG_PRINT("info", ("val: %d", val));
#if MYSQL_VERSION_ID < 50000 #if MYSQL_VERSION_ID < 50000
mysql->reconnect= val; mysql->reconnect= reconnect;
#else #else
my_bool reconnect= val;
mysql_options(mysql, MYSQL_OPT_RECONNECT, (char *)&reconnect); mysql_options(mysql, MYSQL_OPT_RECONNECT, (char *)&reconnect);
#endif #endif
DBUG_VOID_RETURN; DBUG_VOID_RETURN;
...@@ -3609,7 +3609,7 @@ void scan_command_for_warnings(struct st_command *command) ...@@ -3609,7 +3609,7 @@ void scan_command_for_warnings(struct st_command *command)
*end= save; *end= save;
} }
*ptr++; ptr++;
} }
DBUG_VOID_RETURN; DBUG_VOID_RETURN;
} }
......
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