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:
Cy Schubert
2023-02-15 10:12:21 -08:00
committed by Jon Trulson
parent 65e8cf9019
commit 8a24d70d5e
22 changed files with 183 additions and 181 deletions

View File

@@ -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)