We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 813ad38 commit 1e6b33eCopy full SHA for 1e6b33e
2 files changed
include/atomic/x86-gcc.h
@@ -88,7 +88,7 @@
88
*/
89
#define make_atomic_add_body64 \
90
int64 tmp=*a; \
91
- while (!my_atomic_cas64(a, &tmp, tmp+v)); \
+ while (!my_atomic_cas64(a, &tmp, tmp+v)) ; \
92
v=tmp;
93
94
/*
include/my_atomic.h
@@ -77,13 +77,13 @@
77
#ifndef make_atomic_add_body
78
#define make_atomic_add_body(S) \
79
int ## S tmp=*a; \
80
- while (!my_atomic_cas ## S(a, &tmp, tmp+v)); \
+ while (!my_atomic_cas ## S(a, &tmp, tmp+v)) ; \
81
82
#endif
83
#ifndef make_atomic_fas_body
84
#define make_atomic_fas_body(S) \
85
86
- while (!my_atomic_cas ## S(a, &tmp, v)); \
+ while (!my_atomic_cas ## S(a, &tmp, v)) ; \
87
#ifndef make_atomic_load_body
0 commit comments