Merge pull request #10288 from mikeller/fix_tests_on_macos_catalina

Fixed test build on MacOS Catalina with native clang.
This commit is contained in:
Michael Keller 2020-10-22 04:59:52 +13:00 committed by GitHub
commit 47d97e4238
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ static inline void __do_cleanup(__cleanup_block * b) { (*b)(); }
#define ATOMIC_BARRIER(data) \
typeof(data) *__UNIQL(__barrier) = &data; \
ATOMIC_BARRIER_ENTER(__UNIQL(__barrier), #data); \
__cleanup_block __attribute__((cleanup(__do_cleanup) __unused__)) __UNIQL(__cleanup) = \
__cleanup_block __attribute__((cleanup(__do_cleanup), __unused__)) __UNIQL(__cleanup) = \
^{ ATOMIC_BARRIER_LEAVE(__UNIQL(__barrier), #data); }; \
do {} while(0) \
/**/