Skip to content
New issue

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

Builds fail on Mac OS 14.5 #8

Open
MiCkSoftware opened this issue Jun 21, 2024 · 1 comment
Open

Builds fail on Mac OS 14.5 #8

MiCkSoftware opened this issue Jun 21, 2024 · 1 comment

Comments

@MiCkSoftware
Copy link

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)); \

@NexxuSix
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants