Merge lp:~laurynas-biveinis/percona-server/compiler-warnings-5.1 into lp:percona-server/5.1

Proposed by Laurynas Biveinis
Status: Merged
Approved by: Stewart Smith
Approved revision: no longer in the source branch.
Merged at revision: 327
Proposed branch: lp:~laurynas-biveinis/percona-server/compiler-warnings-5.1
Merge into: lp:percona-server/5.1
Diff against target: 490 lines (+87/-51)
9 files modified
patches/bugfix48929.patch (+21/-9)
patches/innodb_expand_fast_index_creation.patch (+2/-2)
patches/innodb_expand_import.patch (+1/-3)
patches/innodb_split_buf_pool_mutex.patch (+25/-30)
patches/innodb_thread_concurrency_timer_based.patch (+3/-3)
patches/mysql_remove_eol_carret.patch (+7/-1)
patches/query_cache_enhance.patch (+3/-3)
patches/series (+1/-0)
patches/warning_fixes.patch (+24/-0)
To merge this branch: bzr merge lp:~laurynas-biveinis/percona-server/compiler-warnings-5.1
Reviewer Review Type Date Requested Status
Alexey Kopytov (community) Approve
Percona developers Pending
Oleg Tsarev Pending
Yasufumi Kinoshita Pending
Review via email: mp+80335@code.launchpad.net

This proposal supersedes a proposal from 2011-10-21.

Description of the change

Changes from the previous MP:
- UNINIT_VAR used everywhere where possible (the enum var still has a default initialization due to UNINIT_VAR incompatibility).
- Type cast whitespace fixed.
- s/(unsigned)/(uint).
- Code removed instead of commented out.

The test results of --enable-mysql-maintainer-mode are at
http://jenkins.percona.com/view/Percona%20Server%205.1/job/percona-server-5.1-param-debug/16/
(all workers are past compilation stage now)

The release configuration Jenkins test results will be at
http://jenkins.percona.com/view/Percona%20Server%205.1/job/percona-server-5.1-param/185/

-----------------------

Fix Percona Server 5.1 compilation warnings (including the GCC
4.6-specific ones which are tracked in bug 878164):

- bugfix48929.patch: declare and set ip_flags and socket_flags
  local vars in handle_connections_sockets with conditional
  compilation only if their values are going to be used. Initialize
  sock and flag local vars to silence compiler warnings.
- innodb_expand_fast_index_creation.patch: initialize has_pk local var
  in mysqldump.c:get_table_structure to silence a false positive
  compiler warning. Likewise for is_unique in
  mysqldump.c:skip_secondary_keys.
- innodb_expand_import.patch: remove declaration and setting of
  root_height local var in fil_open_single_table_dataspace.
- innodb_split_buf_pool_mutex.patch: comment out local var flush_type
  declaration and setting of its value in buf_page_io_complete to make
  it regular with commented out use of it.
- innodb_thread_concurrency_timer_based.patch: cast
  os_atomic_increment_lint result to (void) in
  srv0srv.c:srv_conc_enter_innodb_timer_based,
  srv_conc_exit_innodb_timer_based and srv_conc_force_enter_innodb.
- mysql_remove_eol_carret.patch: initialize local var out_length in
  readline.cc:batch_readline to silence a false positive compiler
  warning.
- query_cache_enhance.patch: fix comparison between signed and
  unsigned integer expressions in sql_cache.cc:QueryStripComments::set
  by casting last_space + 1, which can only be non-negative, to
  unsigned.
- New patch warning_fixes.patch for upstream warning fixes: initialize
  local var number in log.cc:find_uniq_filename to silence a false
  positive compiler warning. Initialize local var need_copy_table_res
  local var in sql_table.cc:mysql_alter_table.

Custom Jenkins configuration with -Werror testing results:
http://jenkins.percona.com/view/Percona%20Server%205.1/job/percona-server-5.1-param/184/

No failures besides the usual slave/unstable-testcase stuff.

Since it is missing "release" configuration, I'm also running Jenkins in the main configuration. Will post it once it finishes.

To post a comment you must log in.
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote : Posted in a previous version of this proposal
Revision history for this message
Oleg Tsarev (tsarev) wrote : Posted in a previous version of this proposal

1) innodb_split_buf_pool_mutex.patch

According to discussion with Alexey https://code.launchpad.net/~tsarev/percona-server/test55_691404/+merge/77124, our current policy - remove source code instead of comment than.

I think for XtraDB we can do following exception:
 * If we replace original code - comment should be (or we should fill bug about remove all comments)
 * If we fix code in patch - replace without variants.

flush_type variable added by patch, and I don't see reasons to keep it with comments

2) warning_fixes.patch

Can you please fill separate bug for this?

All other LGTM.

review: Needs Fixing (dev)
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote : Posted in a previous version of this proposal

1) My fix is meant to be minimal and consistent w/ original patch style. If the original patch violates our coding guidelines, let's file a separate bug for that and make separate fixes as a follow-up. If I only change the current MP minimally, then the original patch will become inconsistent in style. If this MP fixes the whole patch, then the MP won't be minimal anymore and will contain what is an unrelated change. So I believe it is best to merge as-is, and then follow up as necessary.

2) Sure, I will file separate (upstream) bugs as soon as this lands in the trunk.

Revision history for this message
Oleg Tsarev (tsarev) wrote : Posted in a previous version of this proposal

> 1) My fix is meant to be minimal and consistent w/ original patch style. If
> the original patch violates our coding guidelines, let's file a separate bug
> for that and make separate fixes as a follow-up. If I only change the current
> MP minimally, then the original patch will become inconsistent in style. If
> this MP fixes the whole patch, then the MP won't be minimal anymore and will
> contain what is an unrelated change. So I believe it is best to merge as-is,
> and then follow up as necessary.
>
> 2) Sure, I will file separate (upstream) bugs as soon as this lands in the
> trunk.

review: Approve
Revision history for this message
Alexey Kopytov (akopytov) wrote : Posted in a previous version of this proposal

- please use UNINIT_VAR() to suppress false positive warnings. This also applies to need_copy_table_res one.

- please add a space after a type cast. this rule applies to both server and InnoDB code.

- please use 'uint' instead of 'unsigned'

- please, please, please just remove code instead of commenting it out. Yes, that weird thing is used in existing patches. No, it's not like we have any documented policy requiring people to do so, so I don't think "style" is an appropriate term to describe this. Yes, we can file a separate bug to fix the existing code. No, having abominations like this in existing patches does not mean we must introduce new ones.

review: Needs Fixing
Revision history for this message
Alexey Kopytov (akopytov) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'patches/bugfix48929.patch'
2--- patches/bugfix48929.patch 2011-10-07 20:36:41 +0000
3+++ patches/bugfix48929.patch 2011-10-25 14:05:25 +0000
4@@ -29,16 +29,25 @@
5 #define mysqld_charset &my_charset_latin1
6
7 #ifdef HAVE_purify
8-@@ -5139,28 +5143,49 @@
9+@@ -5137,31 +5141,58 @@
10+ #ifndef EMBEDDED_LIBRARY
11+ pthread_handler_t handle_connections_sockets(void *arg __attribute__((unused)))
12 {
13- my_socket sock,new_sock;
14+- my_socket sock,new_sock;
15++ my_socket UNINIT_VAR(sock),new_sock;
16 uint error_count=0;
17 - uint max_used_connection= (uint) (max(ip_sock,unix_sock)+1);
18 - fd_set readFDs,clientFDs;
19 THD *thd;
20 struct sockaddr_in cAddr;
21 - int ip_flags=0,socket_flags=0,flags;
22-+ int ip_flags=0,socket_flags=0,flags,retval;
23++#if !defined(HAVE_POLL)
24++ int ip_flags= 0;
25++#endif
26++#if defined(HAVE_SYS_UN_H) && !defined(HAVE_POLL)
27++ int socket_flags= 0;
28++#endif
29++ int UNINIT_VAR(flags),retval;
30 st_vio *vio_tmp;
31 +#ifdef HAVE_POLL
32 + int socket_count= 0;
33@@ -66,8 +75,9 @@
34 + socket_count++;
35 +#else
36 FD_SET(ip_sock,&clientFDs);
37+-#ifdef HAVE_FCNTL
38 +#endif
39- #ifdef HAVE_FCNTL
40++#if !defined (HAVE_POLL) && defined(HAVE_FCNTL)
41 ip_flags = fcntl(ip_sock, F_GETFL, 0);
42 #endif
43 }
44@@ -78,11 +88,13 @@
45 + socket_count++;
46 +#else
47 FD_SET(unix_sock,&clientFDs);
48+-#ifdef HAVE_FCNTL
49 +#endif
50- #ifdef HAVE_FCNTL
51++#if defined(HAVE_FCNTL) && defined(HAVE_SYS_UN_H) && !defined(HAVE_POLL)
52 socket_flags=fcntl(unix_sock, F_GETFL, 0);
53 #endif
54-@@ -5170,12 +5195,15 @@
55+ #endif
56+@@ -5170,12 +5201,15 @@
57 MAYBE_BROKEN_SYSCALL;
58 while (!abort_loop)
59 {
60@@ -103,7 +115,7 @@
61 {
62 if (socket_errno != SOCKET_EINTR)
63 {
64-@@ -5185,7 +5213,7 @@
65+@@ -5185,7 +5219,7 @@
66 MAYBE_BROKEN_SYSCALL
67 continue;
68 }
69@@ -112,7 +124,7 @@
70 if (abort_loop)
71 {
72 MAYBE_BROKEN_SYSCALL;
73-@@ -5193,6 +5221,21 @@
74+@@ -5193,6 +5227,21 @@
75 }
76
77 /* Is this a new connection request ? */
78@@ -134,7 +146,7 @@
79 #ifdef HAVE_SYS_UN_H
80 if (FD_ISSET(unix_sock,&readFDs))
81 {
82-@@ -5200,11 +5243,12 @@
83+@@ -5200,11 +5249,12 @@
84 flags= socket_flags;
85 }
86 else
87
88=== modified file 'patches/innodb_expand_fast_index_creation.patch'
89--- patches/innodb_expand_fast_index_creation.patch 2011-10-07 20:37:58 +0000
90+++ patches/innodb_expand_fast_index_creation.patch 2011-10-25 14:05:25 +0000
91@@ -113,7 +113,7 @@
92 + while (*ptr)
93 + {
94 + char *tmp, *orig_ptr, c;
95-+ my_bool is_unique;
96++ my_bool UNINIT_VAR(is_unique);
97 +
98 + orig_ptr= ptr;
99 + /* Skip leading whitespace */
100@@ -248,7 +248,7 @@
101 int len;
102 MYSQL_RES *result;
103 MYSQL_ROW row;
104-+ my_bool has_pk;
105++ my_bool UNINIT_VAR(has_pk);
106 DBUG_ENTER("get_table_structure");
107 DBUG_PRINT("enter", ("db: %s table: %s", db, table));
108
109
110=== modified file 'patches/innodb_expand_import.patch'
111--- patches/innodb_expand_import.patch 2011-09-20 11:03:20 +0000
112+++ patches/innodb_expand_import.patch 2011-10-25 14:05:25 +0000
113@@ -591,7 +591,7 @@
114 ut_free(buf2);
115
116 if (UNIV_UNLIKELY(space_id != id
117-@@ -3117,6 +3642,271 @@
118+@@ -3117,6 +3642,269 @@
119 os_file_close(file);
120 mem_free(filepath);
121
122@@ -599,7 +599,6 @@
123 + ulint page_no;
124 + ulint zip_size;
125 + ulint height;
126-+ ulint root_height = 0;
127 + rec_t* node_ptr;
128 + dict_table_t* table;
129 + dict_index_t* index;
130@@ -638,7 +637,6 @@
131 +
132 + if (height == ULINT_UNDEFINED) {
133 + height = btr_page_get_level(page, &mtr);
134-+ root_height = height;
135 + }
136 +
137 + if (height == 0) {
138
139=== modified file 'patches/innodb_split_buf_pool_mutex.patch'
140--- patches/innodb_split_buf_pool_mutex.patch 2011-10-07 20:33:10 +0000
141+++ patches/innodb_split_buf_pool_mutex.patch 2011-10-25 14:05:25 +0000
142@@ -1264,16 +1264,15 @@
143
144 mtr_memo_push(mtr, block, MTR_MEMO_BUF_FIX);
145
146-@@ -2761,6 +2920,8 @@
147+@@ -2761,6 +2920,7 @@
148 enum buf_io_fix io_type;
149 const ibool uncompressed = (buf_page_get_state(bpage)
150 == BUF_BLOCK_FILE_PAGE);
151-+ enum buf_flush flush_type;
152 + mutex_t* block_mutex;
153
154 ut_a(buf_page_in_file(bpage));
155
156-@@ -2894,8 +3055,17 @@
157+@@ -2894,8 +3054,13 @@
158 }
159 }
160
161@@ -1281,11 +1280,7 @@
162 - mutex_enter(buf_page_get_mutex(bpage));
163 + //buf_pool_mutex_enter();
164 + if (io_type == BUF_IO_WRITE) {
165-+ flush_type = buf_page_get_flush_type(bpage);
166-+ /* to keep consistency at buf_LRU_insert_zip_clean() */
167-+ //if (flush_type == BUF_FLUSH_LRU) { /* optimistic! */
168-+ mutex_enter(&LRU_list_mutex);
169-+ //}
170++ mutex_enter(&LRU_list_mutex);
171 + }
172 + block_mutex = buf_page_get_mutex_enter(bpage);
173 + ut_a(block_mutex);
174@@ -1293,7 +1288,7 @@
175
176 #ifdef UNIV_IBUF_COUNT_DEBUG
177 if (io_type == BUF_IO_WRITE || uncompressed) {
178-@@ -2935,6 +3105,11 @@
179+@@ -2935,6 +3100,11 @@
180
181 buf_flush_write_complete(bpage);
182
183@@ -1305,7 +1300,7 @@
184 if (uncompressed) {
185 rw_lock_s_unlock_gen(&((buf_block_t*) bpage)->lock,
186 BUF_IO_WRITE);
187-@@ -2957,8 +3132,9 @@
188+@@ -2957,8 +3127,9 @@
189 }
190 #endif /* UNIV_DEBUG */
191
192@@ -1317,7 +1312,7 @@
193 }
194
195 /*********************************************************************//**
196-@@ -3005,7 +3181,8 @@
197+@@ -3005,7 +3176,8 @@
198 freed = buf_LRU_search_and_free_block(100);
199 }
200
201@@ -1327,7 +1322,7 @@
202
203 ut_ad(UT_LIST_GET_LEN(buf_pool->LRU) == 0);
204 ut_ad(UT_LIST_GET_LEN(buf_pool->unzip_LRU) == 0);
205-@@ -3018,7 +3195,8 @@
206+@@ -3018,7 +3190,8 @@
207 memset(&buf_pool->stat, 0x00, sizeof(buf_pool->stat));
208 buf_refresh_io_stats();
209
210@@ -1337,7 +1332,7 @@
211 }
212
213 #if defined UNIV_DEBUG || defined UNIV_BUF_DEBUG
214-@@ -3043,7 +3221,10 @@
215+@@ -3043,7 +3216,10 @@
216
217 ut_ad(buf_pool);
218
219@@ -1349,7 +1344,7 @@
220
221 chunk = buf_pool->chunks;
222
223-@@ -3142,7 +3323,7 @@
224+@@ -3142,7 +3318,7 @@
225 /* Check clean compressed-only blocks. */
226
227 for (b = UT_LIST_GET_FIRST(buf_pool->zip_clean); b;
228@@ -1358,7 +1353,7 @@
229 ut_a(buf_page_get_state(b) == BUF_BLOCK_ZIP_PAGE);
230 switch (buf_page_get_io_fix(b)) {
231 case BUF_IO_NONE:
232-@@ -3167,8 +3348,9 @@
233+@@ -3167,8 +3343,9 @@
234
235 /* Check dirty compressed-only blocks. */
236
237@@ -1369,7 +1364,7 @@
238 ut_ad(b->in_flush_list);
239
240 switch (buf_page_get_state(b)) {
241-@@ -3213,6 +3395,7 @@
242+@@ -3213,6 +3390,7 @@
243 }
244 ut_a(buf_page_hash_get(b->space, b->offset) == b);
245 }
246@@ -1377,7 +1372,7 @@
247
248 mutex_exit(&buf_pool_zip_mutex);
249
250-@@ -3224,19 +3407,27 @@
251+@@ -3224,19 +3402,27 @@
252 }
253
254 ut_a(UT_LIST_GET_LEN(buf_pool->LRU) == n_lru);
255@@ -1406,7 +1401,7 @@
256
257 ut_a(buf_LRU_validate());
258 ut_a(buf_flush_validate());
259-@@ -3270,7 +3461,10 @@
260+@@ -3270,7 +3456,10 @@
261 index_ids = mem_alloc(sizeof(dulint) * size);
262 counts = mem_alloc(sizeof(ulint) * size);
263
264@@ -1418,7 +1413,7 @@
265
266 fprintf(stderr,
267 "buf_pool size %lu\n"
268-@@ -3337,7 +3531,10 @@
269+@@ -3337,7 +3526,10 @@
270 }
271 }
272
273@@ -1430,7 +1425,7 @@
274
275 for (i = 0; i < n_found; i++) {
276 index = dict_index_get_if_in_cache(index_ids[i]);
277-@@ -3376,7 +3573,7 @@
278+@@ -3376,7 +3568,7 @@
279 ulint i;
280 ulint fixed_pages_number = 0;
281
282@@ -1439,7 +1434,7 @@
283
284 chunk = buf_pool->chunks;
285
286-@@ -3410,7 +3607,7 @@
287+@@ -3410,7 +3602,7 @@
288 /* Traverse the lists of clean and dirty compressed-only blocks. */
289
290 for (b = UT_LIST_GET_FIRST(buf_pool->zip_clean); b;
291@@ -1448,7 +1443,7 @@
292 ut_a(buf_page_get_state(b) == BUF_BLOCK_ZIP_PAGE);
293 ut_a(buf_page_get_io_fix(b) != BUF_IO_WRITE);
294
295-@@ -3420,8 +3617,9 @@
296+@@ -3420,8 +3612,9 @@
297 }
298 }
299
300@@ -1459,7 +1454,7 @@
301 ut_ad(b->in_flush_list);
302
303 switch (buf_page_get_state(b)) {
304-@@ -3444,9 +3642,10 @@
305+@@ -3444,9 +3637,10 @@
306 break;
307 }
308 }
309@@ -1471,7 +1466,7 @@
310
311 return(fixed_pages_number);
312 }
313-@@ -3504,7 +3703,11 @@
314+@@ -3504,7 +3698,11 @@
315
316 ut_ad(buf_pool);
317
318@@ -1484,7 +1479,7 @@
319
320 fprintf(file,
321 "Buffer pool size %lu\n"
322-@@ -3607,7 +3810,11 @@
323+@@ -3607,7 +3805,11 @@
324 buf_LRU_stat_sum.unzip, buf_LRU_stat_cur.unzip);
325
326 buf_refresh_io_stats();
327@@ -1497,7 +1492,7 @@
328 }
329
330 /**********************************************************************//**
331-@@ -3634,7 +3841,7 @@
332+@@ -3634,7 +3836,7 @@
333
334 ut_ad(buf_pool);
335
336@@ -1506,7 +1501,7 @@
337
338 chunk = buf_pool->chunks;
339
340-@@ -3651,7 +3858,7 @@
341+@@ -3651,7 +3853,7 @@
342 }
343 }
344
345@@ -1515,7 +1510,7 @@
346
347 return(TRUE);
348 }
349-@@ -3667,7 +3874,8 @@
350+@@ -3667,7 +3869,8 @@
351 {
352 ibool ret;
353
354@@ -1525,7 +1520,7 @@
355
356 if (buf_pool->n_pend_reads + buf_pool->n_flush[BUF_FLUSH_LRU]
357 + buf_pool->n_flush[BUF_FLUSH_LIST]
358-@@ -3677,7 +3885,8 @@
359+@@ -3677,7 +3880,8 @@
360 ret = TRUE;
361 }
362
363@@ -1535,7 +1530,7 @@
364
365 return(ret);
366 }
367-@@ -3692,11 +3901,13 @@
368+@@ -3692,11 +3896,13 @@
369 {
370 ulint len;
371
372
373=== modified file 'patches/innodb_thread_concurrency_timer_based.patch'
374--- patches/innodb_thread_concurrency_timer_based.patch 2011-09-20 11:03:20 +0000
375+++ patches/innodb_thread_concurrency_timer_based.patch 2011-10-25 14:05:25 +0000
376@@ -112,7 +112,7 @@
377 + enter_innodb_with_tickets(trx);
378 + return;
379 + }
380-+ os_atomic_increment_lint(&srv_conc_n_threads, -1);
381++ (void) os_atomic_increment_lint(&srv_conc_n_threads, -1);
382 + }
383 + if (!has_yielded)
384 + {
385@@ -142,7 +142,7 @@
386 +static void
387 +srv_conc_exit_innodb_timer_based(trx_t* trx)
388 +{
389-+ os_atomic_increment_lint(&srv_conc_n_threads, -1);
390++ (void) os_atomic_increment_lint(&srv_conc_n_threads, -1);
391 + trx->declared_to_be_inside_innodb = FALSE;
392 + trx->n_tickets_to_enter_innodb = 0;
393 + return;
394@@ -172,7 +172,7 @@
395 ut_ad(srv_conc_n_threads >= 0);
396 +#ifdef HAVE_ATOMIC_BUILTINS
397 + if (srv_thread_concurrency_timer_based) {
398-+ os_atomic_increment_lint(&srv_conc_n_threads, 1);
399++ (void) os_atomic_increment_lint(&srv_conc_n_threads, 1);
400 + trx->declared_to_be_inside_innodb = TRUE;
401 + trx->n_tickets_to_enter_innodb = 1;
402 + return;
403
404=== modified file 'patches/mysql_remove_eol_carret.patch'
405--- patches/mysql_remove_eol_carret.patch 2011-10-03 09:29:31 +0000
406+++ patches/mysql_remove_eol_carret.patch 2011-10-25 14:05:25 +0000
407@@ -47,7 +47,13 @@
408 static bool init_line_buffer(LINE_BUFFER *buffer,File file,ulong size,
409 ulong max_size);
410 static bool init_line_buffer_from_string(LINE_BUFFER *buffer,char * str);
411-@@ -62,7 +64,7 @@
412+@@ -57,12 +59,12 @@
413+ char *batch_readline(LINE_BUFFER *line_buff)
414+ {
415+ char *pos;
416+- ulong out_length;
417++ ulong UNINIT_VAR(out_length);
418+
419 if (!(pos=intern_read_line(line_buff, &out_length)))
420 return 0;
421 if (out_length && pos[out_length-1] == '\n')
422
423=== modified file 'patches/query_cache_enhance.patch'
424--- patches/query_cache_enhance.patch 2011-10-07 20:36:41 +0000
425+++ patches/query_cache_enhance.patch 2011-10-25 14:05:25 +0000
426@@ -32,7 +32,7 @@
427 my_bool opt_use_global_long_query_time= 0;
428 my_bool opt_slow_query_log_microseconds_timestamp= 0;
429 my_bool lower_case_file_system= 0;
430-@@ -5914,6 +5915,7 @@
431+@@ -5922,6 +5923,7 @@
432 OPT_THREAD_STATISTICS,
433 OPT_OPTIMIZER_FIX,
434 OPT_SUPPRESS_LOG_WARNING_1592,
435@@ -40,7 +40,7 @@
436 OPT_USE_GLOBAL_LONG_QUERY_TIME,
437 OPT_USE_GLOBAL_LOG_SLOW_CONTROL,
438 OPT_SLOW_QUERY_LOG_MICROSECONDS_TIMESTAMP,
439-@@ -6969,6 +6971,10 @@
440+@@ -6977,6 +6979,10 @@
441 {"use_global_log_slow_control", OPT_USE_GLOBAL_LOG_SLOW_CONTROL,
442 "Choose flags, wich always use the global variables. Multiple flags allowed in a comma-separated string. [none, log_slow_filter, log_slow_rate_limit, log_slow_verbosity, long_query_time, min_examined_row_limit, all]",
443 0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, SLOG_UG_NONE, 0, 0},
444@@ -360,7 +360,7 @@
445 + }
446 + if(insert_space)
447 + {
448-+ if((last_space + 1) != position)
449++ if((uint) (last_space + 1) != position)
450 + {
451 + last_space = position;
452 + buffer[position++] = ' ';
453
454=== modified file 'patches/series'
455--- patches/series 2011-10-08 00:17:56 +0000
456+++ patches/series 2011-10-25 14:05:25 +0000
457@@ -65,3 +65,4 @@
458 bug53761.patch
459 xtradb_bug317074.patch
460 subunit.patch
461+warning_fixes.patch
462
463=== added file 'patches/warning_fixes.patch'
464--- patches/warning_fixes.patch 1970-01-01 00:00:00 +0000
465+++ patches/warning_fixes.patch 2011-10-25 14:05:25 +0000
466@@ -0,0 +1,24 @@
467+--- a/sql/log.cc
468++++ b/sql/log.cc
469+@@ -1905,7 +1905,7 @@
470+
471+ static int find_uniq_filename(char *name)
472+ {
473+- long number;
474++ long UNINIT_VAR(number);
475+ uint i;
476+ char buff[FN_REFLEN];
477+ struct st_my_dir *dir_info;
478+--- a/sql/sql_table.cc
479++++ b/sql/sql_table.cc
480+@@ -7140,7 +7140,9 @@
481+ need_copy_table= ALTER_TABLE_DATA_CHANGED;
482+ else
483+ {
484+- enum_alter_table_change_level need_copy_table_res;
485++ enum_alter_table_change_level need_copy_table_res=
486++ ALTER_TABLE_METADATA_ONLY;
487++
488+ /* Check how much the tables differ. */
489+ if (compare_tables(table, alter_info,
490+ create_info, order_num,

Subscribers

People subscribed via source and target branches