1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-11212 - Clean-up MariaDB atomic operations

No more black magic for gcc atomic bultins. Fixes some warnings.
This commit is contained in:
Sergey Vojtovich
2016-11-03 13:21:18 +04:00
parent 81f280789b
commit c10e523d78
2 changed files with 32 additions and 14 deletions

View File

@@ -115,6 +115,7 @@
#endif
#ifndef HAVE_GCC_C11_ATOMICS
#ifndef make_atomic_cas_body
/* nolock.h was not able to generate even a CAS function, fall back */
#error atomic ops for this platform are not implemented
@@ -220,6 +221,7 @@ make_atomic_store(ptr)
#undef make_atomic_store_body
#undef make_atomic_fas_body
#undef intptr
#endif
/*
the macro below defines (as an expression) the code that