]> git.pld-linux.org Git - packages/mysql.git/blame - warning_fixes.patch
- rel. 2
[packages/mysql.git] / warning_fixes.patch
CommitLineData
13ceb006
AM
1--- a/sql/debug_sync.cc
2+++ b/sql/debug_sync.cc
3@@ -1737,7 +1737,7 @@
4 if (action->wait_for.length())
5 {
6 mysql_mutex_t *old_mutex;
7- mysql_cond_t *old_cond;
8+ mysql_cond_t* UNINIT_VAR(old_cond);
9 int error= 0;
10 struct timespec abstime;
11
543222d2
AM
12--- a/storage/innobase/ibuf/ibuf0ibuf.c
13+++ b/storage/innobase/ibuf/ibuf0ibuf.c
14@@ -1523,7 +1523,7 @@
15
16 for (i = 0; i < IBUF_OP_COUNT; i++) {
17 #ifdef HAVE_ATOMIC_BUILTINS
18- os_atomic_increment_ulint(&arr[i], ops[i]);
19+ (void) os_atomic_increment_ulint(&arr[i], ops[i]);
20 #else /* HAVE_ATOMIC_BUILTINS */
21 arr[i] += ops[i];
22 #endif /* HAVE_ATOMIC_BUILTINS */
23@@ -4785,7 +4785,7 @@
24 mem_heap_free(heap);
25
26 #ifdef HAVE_ATOMIC_BUILTINS
27- os_atomic_increment_ulint(&ibuf->n_merges, 1);
28+ (void) os_atomic_increment_ulint(&ibuf->n_merges, 1);
29 ibuf_add_ops(ibuf->n_merged_ops, mops);
30 ibuf_add_ops(ibuf->n_discarded_ops, dops);
31 #else /* HAVE_ATOMIC_BUILTINS */
This page took 0.05721 seconds and 4 git commands to generate.