summaryrefslogtreecommitdiff
path: root/unittest
diff options
context:
space:
mode:
authorunknown <sanja@askmonty.org>2011-10-27 15:22:52 +0300
committerunknown <sanja@askmonty.org>2011-10-27 15:22:52 +0300
commit28e2777991b238d770529d0438e4f18fbfc3e271 (patch)
tree38f9c8b2a404dca974887089cfb67e492ee68e77 /unittest
parent78eb1d48c91f260cab3f616d8a9a8de8040d2347 (diff)
downloadmariadb-git-28e2777991b238d770529d0438e4f18fbfc3e271.tar.gz
Fix gcc 4.6 warnings about assigned but not used variables.
Fixed my_gethwaddr.c to allow compilation on Mac OS X.
Diffstat (limited to 'unittest')
-rw-r--r--unittest/mysys/lf-t.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/unittest/mysys/lf-t.c b/unittest/mysys/lf-t.c
index 61b7ae08cf5..29de0a0e812 100644
--- a/unittest/mysys/lf-t.c
+++ b/unittest/mysys/lf-t.c
@@ -33,14 +33,13 @@ LF_HASH lf_hash;
pthread_handler_t test_lf_pinbox(void *arg)
{
int m= *(int *)arg;
- int32 x= 0;
LF_PINS *pins;
my_thread_init();
pins= lf_pinbox_get_pins(&lf_allocator.pinbox);
- for (x= ((int)(intptr)(&m)); m ; m--)
+ for (; m ; m--)
{
lf_pinbox_put_pins(pins);
pins= lf_pinbox_get_pins(&lf_allocator.pinbox);