Skip to content

Instantly share code, notes, and snippets.

@marijnh
Created April 7, 2011 22:23
Show Gist options
  • Save marijnh/908913 to your computer and use it in GitHub Desktop.
Save marijnh/908913 to your computer and use it in GitHub Desktop.
cc1plus: warnings being treated as errors
In file included from ./src/rt/rust_internal.h:48,
from ./src/rt/rust.cpp:1:
./src/rt/sync/lock_free_queue.h: In member function ‘bool lock_free_queue<T>::compare_and_swap(lock_free_queue<T>::pointer_t*, lock_free_queue<T>::pointer_t*, lock_free_queue<T>::pointer_t) [with T = rust_message*]’:
./src/rt/sync/lock_free_queue.h:154: instantiated from ‘void lock_free_queue<T>::enqueue(T) [with T = rust_message*]’
./src/rt/rust_message.h:119: instantiated from here
./src/rt/sync/lock_free_queue.h:91: error: dereferencing type-punned pointer will break strict-aliasing rules
make: *** [rt/rust.o] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment