mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
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.
This commit is contained in:
@@ -88,7 +88,7 @@
|
|||||||
*/
|
*/
|
||||||
#define make_atomic_add_body64 \
|
#define make_atomic_add_body64 \
|
||||||
int64 tmp=*a; \
|
int64 tmp=*a; \
|
||||||
while (!my_atomic_cas64(a, &tmp, tmp+v)); \
|
while (!my_atomic_cas64(a, &tmp, tmp+v)) ; \
|
||||||
v=tmp;
|
v=tmp;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -77,13 +77,13 @@
|
|||||||
#ifndef make_atomic_add_body
|
#ifndef make_atomic_add_body
|
||||||
#define make_atomic_add_body(S) \
|
#define make_atomic_add_body(S) \
|
||||||
int ## S tmp=*a; \
|
int ## S tmp=*a; \
|
||||||
while (!my_atomic_cas ## S(a, &tmp, tmp+v)); \
|
while (!my_atomic_cas ## S(a, &tmp, tmp+v)) ; \
|
||||||
v=tmp;
|
v=tmp;
|
||||||
#endif
|
#endif
|
||||||
#ifndef make_atomic_fas_body
|
#ifndef make_atomic_fas_body
|
||||||
#define make_atomic_fas_body(S) \
|
#define make_atomic_fas_body(S) \
|
||||||
int ## S tmp=*a; \
|
int ## S tmp=*a; \
|
||||||
while (!my_atomic_cas ## S(a, &tmp, v)); \
|
while (!my_atomic_cas ## S(a, &tmp, v)) ; \
|
||||||
v=tmp;
|
v=tmp;
|
||||||
#endif
|
#endif
|
||||||
#ifndef make_atomic_load_body
|
#ifndef make_atomic_load_body
|
||||||
|
Reference in New Issue
Block a user