summaryrefslogtreecommitdiff
path: root/unittest
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mysql.com>2008-10-07 20:14:50 +0200
committerSergei Golubchik <serg@mysql.com>2008-10-07 20:14:50 +0200
commitc0157e8aea44496e8a69a01941bab74ef49184e5 (patch)
tree0b8a4342a5343d602d55c112528be4206e49f7b0 /unittest
parent10a2bac7775912e25eeba593dbce055e2b30699b (diff)
downloadmariadb-git-c0157e8aea44496e8a69a01941bab74ef49184e5.tar.gz
compiler warnings on winx86
Diffstat (limited to 'unittest')
-rw-r--r--unittest/mysys/waiting_threads-t.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/unittest/mysys/waiting_threads-t.c b/unittest/mysys/waiting_threads-t.c
index 39a8e800db0..dc3cf7d6265 100644
--- a/unittest/mysys/waiting_threads-t.c
+++ b/unittest/mysys/waiting_threads-t.c
@@ -54,7 +54,7 @@ pthread_handler_t test_wt(void *arg)
my_rnd_init(&rand, (ulong)(intptr)&m, id);
if (kill_strategy == YOUNGEST)
- thds[id].thd.weight= ~my_getsystime();
+ thds[id].thd.weight= (ulong volatile)~my_getsystime();
if (kill_strategy == LOCKS)
thds[id].thd.weight= 0;
@@ -104,7 +104,7 @@ retry:
if (kill_strategy == LOCKS)
thds[id].thd.weight= 0;
if (kill_strategy == YOUNGEST)
- thds[id].thd.weight= ~my_getsystime();
+ thds[id].thd.weight= (ulong volatile)~my_getsystime();
}
else if (kill_strategy == LOCKS)
thds[id].thd.weight++;