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

CPU atomic path triggers warnings #55

Open
nsubtil opened this issue Feb 18, 2016 · 0 comments
Open

CPU atomic path triggers warnings #55

nsubtil opened this issue Feb 18, 2016 · 0 comments
Labels

Comments

@nsubtil
Copy link
Owner

nsubtil commented Feb 18, 2016

Seen in Travis builds:

/home/travis/build/nsubtil/lift/lift/atomics_host.inl: In static member function static float lift::atomics<system>::add(float*, float) [with lift::target_system system = (lift::target_system)0u]: /home/travis/build/nsubtil/lift/lift/atomics_host.inl:56:111: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] __atomic_compare_exchange((volatile uint32 *)address, ^ /home/travis/build/nsubtil/lift/lift/atomics_host.inl:61:29: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] if (*((uint32 *)&expected) == *((uint32 *)&oldval)) ^ /home/travis/build/nsubtil/lift/lift/atomics_host.inl:61:57: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] if (*((uint32 *)&expected) == *((uint32 *)&oldval)) ^

https://travis-ci.org/nsubtil/lift/jobs/110036115

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

No branches or pull requests

1 participant