summaryrefslogtreecommitdiff
path: root/include/atomic
diff options
context:
space:
mode:
authorKonstantin Osipov <kostja@sun.com>2010-02-19 17:20:29 +0300
committerKonstantin Osipov <kostja@sun.com>2010-02-19 17:20:29 +0300
commitfcc9c8627a54f68ffe7c2f225d20a9f8c1016a08 (patch)
tree4e76903c80e07eadda17aaabce64b50d602595c3 /include/atomic
parentd62496ce611c7c0eccf3ac6c54114e86681f67dd (diff)
downloadmariadb-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/atomic')
-rw-r--r--include/atomic/x86-gcc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/atomic/x86-gcc.h b/include/atomic/x86-gcc.h
index 77c32f8d70c..61b94a48568 100644
--- a/include/atomic/x86-gcc.h
+++ b/include/atomic/x86-gcc.h
@@ -88,7 +88,7 @@
*/
#define make_atomic_add_body64 \
int64 tmp=*a; \
- while (!my_atomic_cas64(a, &tmp, tmp+v)); \
+ while (!my_atomic_cas64(a, &tmp, tmp+v)) ; \
v=tmp;
/*