Skip to content

Commit 9774386

Browse files
author
Tor Didriksen
committed
Fix broken -Werror -O3 in pushbuild.
Platforms used: Oracle Linux Server release 6.3 gcc (GCC) 4.4.6 20120305 (Red Hat 4.4.6-4) Fedora release 14 (Laughlin) gcc (GCC) 4.5.1 20100924 (Red Hat 4.5.1-4)
1 parent dcab053 commit 9774386

4 files changed

Lines changed: 4 additions & 3 deletions

File tree

plugin/semisync/semisync_master.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1057,7 +1057,7 @@ int ReplSemiSyncMaster::readSlaveReply(NET *net, uint32 server_id,
10571057
ulong packet_len;
10581058
int result = -1;
10591059

1060-
struct timespec start_ts;
1060+
struct timespec start_ts= { 0, 0 };
10611061
ulong trc_level = trace_level_;
10621062

10631063
function_enter(kWho);

scripts/comp_sql.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ int main(int argc, char *argv[])
119119
char* infile_name= argv[2];
120120
char* outfile_name= argv[3];
121121
int rc;
122-
int query_length;
122+
int query_length= 0;
123123
int error= 0;
124124
char *err_ptr;
125125

sql/sql_trigger.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1722,7 +1722,7 @@ bool add_table_for_trigger(THD *thd,
17221722
LEX *lex= thd->lex;
17231723
char trn_path_buff[FN_REFLEN];
17241724
LEX_STRING trn_path= { trn_path_buff, 0 };
1725-
LEX_STRING tbl_name;
1725+
LEX_STRING tbl_name= { NULL, 0 };
17261726

17271727
DBUG_ENTER("add_table_for_trigger");
17281728

strings/ctype-uca.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19798,6 +19798,7 @@ my_uca_scanner_contraction_find(my_uca_scanner *scanner, my_wc_t *wc)
1979819798
size_t clen= 1;
1979919799
int flag;
1980019800
const uchar *s, *beg[MY_UCA_MAX_CONTRACTION];
19801+
memset(beg, 0, sizeof(beg));
1980119802

1980219803
/* Scan all contraction candidates */
1980319804
for (s= scanner->sbeg, flag= MY_UCA_CNT_MID1;

0 commit comments

Comments
 (0)