We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gatomic.c:392:10: error: incompatible integer to pointer conversion passing 'gssize' (aka 'long') to parameter of type 'gpointer' (aka 'void *') [-Wint-conversion] return g_atomic_pointer_add ((volatile gpointer *) atomic, val); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./gatomic.h:158:46: note: expanded from macro 'g_atomic_pointer_add' (gssize) __sync_fetch_and_add ((atomic), (val)); ^~~~~ gatomic.c:416:10: error: incompatible integer to pointer conversion passing 'gsize' (aka 'unsigned long') to parameter of type 'gpointer' (aka 'void *') [-Wint-conversion] return g_atomic_pointer_and ((volatile gpointer *) atomic, val); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./gatomic.h:165:45: note: expanded from macro 'g_atomic_pointer_and' (gsize) __sync_fetch_and_and ((atomic), (val)); ^~~~~ gatomic.c:440:10: error: incompatible integer to pointer conversion passing 'gsize' (aka 'unsigned long') to parameter of type 'gpointer' (aka 'void *') [-Wint-conversion] return g_atomic_pointer_or ((volatile gpointer *) atomic, val); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./gatomic.h:172:44: note: expanded from macro 'g_atomic_pointer_or' (gsize) __sync_fetch_and_or ((atomic), (val)); ^~~~~ gatomic.c:464:10: error: incompatible integer to pointer conversion passing 'gsize' (aka 'unsigned long') to parameter of type 'gpointer' (aka 'void *') [-Wint-conversion] return g_atomic_pointer_xor ((volatile gpointer *) atomic, val); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./gatomic.h:179:45: note: expanded from macro 'g_atomic_pointer_xor' (gsize) __sync_fetch_and_xor ((atomic), (val)); \
The text was updated successfully, but these errors were encountered:
Looking to build this as well. I noticed what looks like a misspelling of gsize:
(gssize) __sync_fetch_and_add ((atomic), (val)); ^
Not for sure if this will fix the issue. I did crawl through some of the code looking for this particular line, but could not find it.
I would be interested in building this code.
Sorry, something went wrong.
No branches or pull requests
gatomic.c:392:10: error: incompatible integer to pointer conversion passing 'gssize' (aka 'long') to parameter of type 'gpointer' (aka 'void *') [-Wint-conversion]
return g_atomic_pointer_add ((volatile gpointer *) atomic, val);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./gatomic.h:158:46: note: expanded from macro 'g_atomic_pointer_add'
(gssize) __sync_fetch_and_add ((atomic), (val));
^~~~~
gatomic.c:416:10: error: incompatible integer to pointer conversion passing 'gsize' (aka 'unsigned long') to parameter of type 'gpointer' (aka 'void *') [-Wint-conversion]
return g_atomic_pointer_and ((volatile gpointer *) atomic, val);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./gatomic.h:165:45: note: expanded from macro 'g_atomic_pointer_and'
(gsize) __sync_fetch_and_and ((atomic), (val));
^~~~~
gatomic.c:440:10: error: incompatible integer to pointer conversion passing 'gsize' (aka 'unsigned long') to parameter of type 'gpointer' (aka 'void *') [-Wint-conversion]
return g_atomic_pointer_or ((volatile gpointer *) atomic, val);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./gatomic.h:172:44: note: expanded from macro 'g_atomic_pointer_or'
(gsize) __sync_fetch_and_or ((atomic), (val));
^~~~~
gatomic.c:464:10: error: incompatible integer to pointer conversion passing 'gsize' (aka 'unsigned long') to parameter of type 'gpointer' (aka 'void *') [-Wint-conversion]
return g_atomic_pointer_xor ((volatile gpointer *) atomic, val);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./gatomic.h:179:45: note: expanded from macro 'g_atomic_pointer_xor'
(gsize) __sync_fetch_and_xor ((atomic), (val)); \
The text was updated successfully, but these errors were encountered: