From 1e6b33ec0f7ba01cb0bb86b6a1f0972c01d0b803 Mon Sep 17 00:00:00 2001 From: Konstantin Osipov Date: Fri, 19 Feb 2010 17:20:29 +0300 Subject: [PATCH] Fix compiler warnings in my_atomic.h --- include/atomic/x86-gcc.h | 2 +- include/my_atomic.h | 4 ++-- 2 files changed, 3 insertions(+), 3 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; /* 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