Fix build under LLVM15
Fix many -Wint-conversion errors such as the example below, including
an aso atomics error.
connect.c:87:12: error: incompatible pointer to integer conversion initializing 'LONG' (aka 'int') with an expression of type 'void *' [-Wint-conversion]
DB_ADDR mdba = NULL; /* db address of current member record */
^ ~~~~
This commit is contained in:
@@ -835,7 +835,7 @@ asocasptr(void volatile* p, void* o, void* n)
|
||||
|
||||
#if defined(_aso_casptr)
|
||||
if (!state.lockf)
|
||||
return _aso_casptr((void**)p, o, n);
|
||||
return _aso_cas64((void**)p, o, n);
|
||||
#endif
|
||||
k = lock(state.data, 0, p);
|
||||
if (*(void* volatile*)p == o)
|
||||
|
||||
Reference in New Issue
Block a user