mirror of
https://github.com/boostorg/container.git
synced 2025-07-30 20:47:17 +02:00
Fix warning "incompatible pointer types passing 'int *' to parameter of type 'volatile long *' [-Wincompatible-pointer-types]", in clang-win
This commit is contained in:
@ -1853,8 +1853,8 @@ static FORCEINLINE void x86_clear_lock(int* sl) {
|
||||
#define CLEAR_LOCK(sl) x86_clear_lock(sl)
|
||||
|
||||
#else /* Win32 MSC */
|
||||
#define CAS_LOCK(sl) interlockedexchange(sl, (LONG)1)
|
||||
#define CLEAR_LOCK(sl) interlockedexchange (sl, (LONG)0)
|
||||
#define CAS_LOCK(sl) interlockedexchange((volatile long*)sl, (LONG)1)
|
||||
#define CLEAR_LOCK(sl) interlockedexchange ((volatile long*)sl, (LONG)0)
|
||||
|
||||
#endif /* ... gcc spins locks ... */
|
||||
|
||||
|
Reference in New Issue
Block a user