diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2020-08-30 04:24:11 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2020-08-30 04:24:11 +0000 |
commit | 5a9f06ca19ca6647c061aeb447ca40fe5e22e2a9 (patch) | |
tree | 6de678d484c9c8a71efd7bd119a72d3ff039f88c /lib/mesa/src/util/u_atomic.c | |
parent | 7aabac9140bd05a4f8d5871d225784a1408349d2 (diff) |
disable -Wmissing-prototypes via pragma for 64 bit atomics fallback
avoids error: no previous prototype for function '__sync_sub_and_fetch_8_c'
Diffstat (limited to 'lib/mesa/src/util/u_atomic.c')
-rw-r--r-- | lib/mesa/src/util/u_atomic.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/mesa/src/util/u_atomic.c b/lib/mesa/src/util/u_atomic.c index 0f76dc53c..5a5eab411 100644 --- a/lib/mesa/src/util/u_atomic.c +++ b/lib/mesa/src/util/u_atomic.c @@ -35,6 +35,7 @@ static pthread_mutex_t sync_mutex = PTHREAD_MUTEX_INITIALIZER; #ifdef __clang__ +#pragma clang diagnostic ignored "-Wmissing-prototypes" #pragma redefine_extname __sync_add_and_fetch_8_c __sync_add_and_fetch_8 #pragma redefine_extname __sync_sub_and_fetch_8_c __sync_sub_and_fetch_8 #pragma redefine_extname __sync_fetch_and_add_8_c __sync_fetch_and_add_8 |