diff options
author | Rich Felker <dalias@aerifal.cx> | 2024-03-02 12:34:05 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2024-03-02 12:34:05 -0500 |
commit | fd7d018521115f2674bf85cbccaf745852b9ed3a (patch) | |
tree | d9ca42237f4b91aa6b2e44c43ffac924f1e82c62 | |
parent | b5121e2ed88504c7186569f1fd6f96a63b7151ca (diff) | |
download | musl-fd7d018521115f2674bf85cbccaf745852b9ed3a.zip musl-fd7d018521115f2674bf85cbccaf745852b9ed3a.tar.gz musl-fd7d018521115f2674bf85cbccaf745852b9ed3a.tar.bz2 |
add missing inline keyword on default a_barrier definition
this is not needed, but may act as a hint to the compiler, and also
serves to suppress unused function warnings if enabled (on by default
since commit 86ac0f794731f03dfff40ee843ff9e2752945d5e).
-rw-r--r-- | src/internal/atomic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/internal/atomic.h b/src/internal/atomic.h index 96c1552..8f71c8c 100644 --- a/src/internal/atomic.h +++ b/src/internal/atomic.h @@ -194,7 +194,7 @@ static inline void a_store(volatile int *p, int v) #ifndef a_barrier #define a_barrier a_barrier -static void a_barrier() +static inline void a_barrier() { volatile int tmp = 0; a_cas(&tmp, 0, 0); |