mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
refs codership/mysql-wsrep#55 - To avoid compiler warming:
sql/sql_parse.cc: In function 'bool do_command(THD*)': sql/sql_parse.cc:758:20: error: 'packet_length' may be used uninitialized in this function [-Werror=maybe-uninitialized] if ((WSREP(thd) && packet_length == packet_error) || [
This commit is contained in:
committed by
Nirbhay Choubey
parent
f6b1e0fe0a
commit
70d6236afd
@ -693,7 +693,11 @@ bool do_command(THD *thd)
|
||||
{
|
||||
bool return_value;
|
||||
char *packet= 0;
|
||||
#ifdef WITH_WSREP
|
||||
ulong packet_length= 0; // just to avoid (false positive) compiler warning
|
||||
#else
|
||||
ulong packet_length;
|
||||
#endif /* WITH_WSREP */
|
||||
NET *net= &thd->net;
|
||||
enum enum_server_command command;
|
||||
DBUG_ENTER("do_command");
|
||||
|
Reference in New Issue
Block a user