diff options
author | Konstantin Osipov <kostja@sun.com> | 2010-02-19 17:20:29 +0300 |
---|---|---|
committer | Konstantin Osipov <kostja@sun.com> | 2010-02-19 17:20:29 +0300 |
commit | fcc9c8627a54f68ffe7c2f225d20a9f8c1016a08 (patch) | |
tree | 4e76903c80e07eadda17aaabce64b50d602595c3 /include/my_atomic.h | |
parent | d62496ce611c7c0eccf3ac6c54114e86681f67dd (diff) | |
download | mariadb-git-fcc9c8627a54f68ffe7c2f225d20a9f8c1016a08.tar.gz |
Fix compiler warnings in my_atomic.h
include/atomic/x86-gcc.h:
Fix a warning about empty while loop body.
include/my_atomic.h:
Fix a warning about empty while loop body.
Diffstat (limited to 'include/my_atomic.h')
-rw-r--r-- | include/my_atomic.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/my_atomic.h b/include/my_atomic.h index b506aa7d3d1..e2304e3246d 100644 --- a/include/my_atomic.h +++ b/include/my_atomic.h @@ -77,13 +77,13 @@ #ifndef make_atomic_add_body #define make_atomic_add_body(S) \ int ## S tmp=*a; \ - while (!my_atomic_cas ## S(a, &tmp, tmp+v)); \ + while (!my_atomic_cas ## S(a, &tmp, tmp+v)) ; \ v=tmp; #endif #ifndef make_atomic_fas_body #define make_atomic_fas_body(S) \ int ## S tmp=*a; \ - while (!my_atomic_cas ## S(a, &tmp, v)); \ + while (!my_atomic_cas ## S(a, &tmp, v)) ; \ v=tmp; #endif #ifndef make_atomic_load_body |