disable -Wmissing-prototypes via pragma for 64 bit atomics fallback

avoids error: no previous prototype for function '__sync_sub_and_fetch_8_c'
This commit is contained in:
jsg 2020-08-30 04:24:10 +00:00
parent fa8ea72eb8
commit 46d4aeacf0

View File

@ -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