Add mechanism to disable temporary compiler warnings in a sequence of code.

This commit is contained in:
Patrick Pelissier committed 2020-07-01 11:47:55 +02:00
1 parent a36752b8ce
commit f2a06ede62
14 files changed
+149 -1

No files matched your search

+5
View File
@@ -135,6 +135,9 @@ using std::memory_order_seq_cst;
We also assume that the call to the atomic_* interface is "clean".
*/
#include "m-mutex.h"
#include "m-core.h"
M_BEGIN_PROTECTED_CODE
/* _Atomic qualifier for a type (emulation).
The structure is quite large:
@@ -305,6 +308,8 @@ static inline long long atomic_fetch_unlock (m_mutex_t *lock, long long val)
/* TODO: Missing atomic_flag. Problem: it is supposed to be lock free! */
M_END_PROTECTED_CODE
#endif
#endif