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
C11 atomic implementation broken #3
Comments
Hmm, GCC 4.9 doesn't seem to have an issue with this, although it does appear to be invalid by the standard (you can't use a non- In any case, should be fixed now in commit 4b53d0e. Can you confirm? |
Some more issues now with const _Atomic types:
|
Seems to be a deficiency in the C11 spec, which they're correcting: So there's two options: cast away the const-ness, or only use C atomics when |
Agreed. We'll have to wait until the compiler vendors catch up with the change. |
Commit 4d19d4f updates the cmake atomic check with a |
Sorry for the long response time. Yes, it looks good now. |
Compiling openal-soft with a compiler that supports C11 atomics (in my case clang 3.4.0) is not possible:
The definitions in atomic.h
just pass pointers into atomic_exchange() without a proper cast or a
ATOMIC_VAR_INIT()
initialization.The text was updated successfully, but these errors were encountered: