diff options
author | unknown <serg@janus.mylan> | 2006-11-22 15:53:26 +0100 |
---|---|---|
committer | unknown <serg@janus.mylan> | 2006-11-22 15:53:26 +0100 |
commit | 354d4a7e06074beb0a08afab06b0f5dfd63d7d1d (patch) | |
tree | cc1e588ae76b8156c1e8706dfb38df10ee641e1d /unittest | |
parent | 5c7960965c4c178d3a02f9893ea65b2802b38b8f (diff) | |
download | mariadb-git-354d4a7e06074beb0a08afab06b0f5dfd63d7d1d.tar.gz |
shut up signedness warnings in atomic ops in gcc
unittest/mysys/my_atomic-t.c:
try both signed and unsigned arguments for atomic ops
Diffstat (limited to 'unittest')
-rw-r--r-- | unittest/mysys/my_atomic-t.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/unittest/mysys/my_atomic-t.c b/unittest/mysys/my_atomic-t.c index a33e233c29a..314335944d3 100644 --- a/unittest/mysys/my_atomic-t.c +++ b/unittest/mysys/my_atomic-t.c @@ -21,7 +21,8 @@ #include <my_atomic.h> #include <lf.h> -volatile uint32 a32,b32,c32, N; +volatile uint32 a32,b32; +volatile int32 c32, N; my_atomic_rwlock_t rwl; LF_ALLOCATOR lf_allocator; LF_HASH lf_hash; @@ -98,7 +99,7 @@ pthread_handler_t test_atomic_cas_handler(void *arg) x= (x*m+0x87654321) & INT_MAX32; do { my_atomic_rwlock_wrlock(&rwl); - ok= my_atomic_cas32(&a32, &y, y+x); + ok= my_atomic_cas32(&a32, &y, (uint32)y+x); my_atomic_rwlock_wrunlock(&rwl); } while (!ok) ; do { |