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

Compiler noise due to -Wcast-qual #270

Closed
brycelelbach opened this issue Jul 10, 2012 · 1 comment
Closed

Compiler noise due to -Wcast-qual #270

brycelelbach opened this issue Jul 10, 2012 · 1 comment
Milestone

Comments

@brycelelbach
Copy link
Member

[reported by maciek] [Trac time Wed Nov 30 17:50:30 2011] g++ 4.5.3 generates excessive amounts of warnings due to qualifiers being cast away in one of the sources. Example below:

In file included from /home/maciek/Projects/parallex/trunk/hpx/external/atomic/boost/atomic/detail/base.hpp:10:0,
                 from /home/maciek/Projects/parallex/trunk/hpx/external/atomic/boost/atomic/detail/gcc-x86.hpp:11,
                 from /home/maciek/Projects/parallex/trunk/hpx/external/atomic/boost/atomic/platform.hpp:11,
                 from /home/maciek/Projects/parallex/trunk/hpx/external/atomic/boost/atomic.hpp:15,
                 from /home/maciek/Projects/parallex/trunk/hpx/external/coroutine/boost/coroutine/detail/context_linux_x86.hpp:19,
                 from /home/maciek/Projects/parallex/trunk/hpx/external/coroutine/boost/coroutine/detail/default_context_impl.hpp:107,
                 from /home/maciek/Projects/parallex/trunk/hpx/external/coroutine/boost/coroutine/coroutine.hpp:33,
                 from /home/maciek/Projects/parallex/trunk/hpx/hpx/hpx_fwd.hpp:28,
                 from /home/maciek/Projects/parallex/trunk/hpx/src/exception.cpp:7:
/home/maciek/Projects/parallex/trunk/hpx/external/atomic/boost/atomic/detail/fallback.hpp: In member function ‘T boost::detail::atomic::fallback_atomic<T>::load(boost::memory_order) const volatile [with T = boost::lockfree::tagged_ptr_pair<boost::lockfree::deque_node<hpx::threads::thread*>, boost::lockfree::deque_node<hpx::threads::thread*> >]’:
/home/maciek/Projects/parallex/trunk/hpx/external/lockfree/boost/lockfree/deque.hpp:95:25:   instantiated from ‘boost::lockfree::deque_anchor<T>::pair boost::lockfree::deque_anchor<T>::lrs() const volatile [with T = hpx::threads::thread*, boost::lockfree::deque_anchor<T>::pair = boost::lockfree::tagged_ptr_pair<boost::lockfree::deque_node<hpx::threads::thread*>, boost::lockfree::deque_node<hpx::threads::thread*> >]’
/home/maciek/Projects/parallex/trunk/hpx/external/lockfree/boost/lockfree/deque.hpp:276:46:   instantiated from ‘bool boost::lockfree::deque<T, freelist_t, Alloc>::empty() const [with T = hpx::threads::thread*, freelist_t = boost::lockfree::caching_freelist_t, Alloc = std::allocator<hpx::threads::thread*>]’
/home/maciek/Projects/parallex/trunk/hpx/hpx/runtime/threads/policies/thread_deque.hpp:206:40:   instantiated from here
/home/maciek/Projects/parallex/trunk/hpx/external/atomic/boost/atomic/detail/fallback.hpp:32:9: warning: cast from type ‘const volatile boost::lockfree::tagged_ptr_pair<boost::lockfree::deque_node<hpx::threads::thread*>, boost::lockfree::deque_node<hpx::threads::thread*> >*’ to type ‘boost::lockfree::tagged_ptr_pair<boost::lockfree::deque_node<hpx::threads::thread*>, boost::lockfree::deque_node<hpx::threads::thread*> >*’ casts away qualifiers [-Wcast-qual]
/home/maciek/Projects/parallex/trunk/hpx/external/atomic/boost/atomic/detail/fallback.hpp: In member function ‘T boost::detail::atomic::fallback_atomic<T>::load(boost::memory_order) const volatile [with T = boost::lockfree::tagged_ptr_pair<boost::lockfree::deque_node<const boost::tuples::tuple<hpx::threads::thread_init_data, hpx::threads::thread_state_enum>*>, boost::lockfree::deque_node<const boost::tuples::tuple<hpx::threads::thread_init_data, hpx::threads::thread_state_enum>*> >]’:
/home/maciek/Projects/parallex/trunk/hpx/external/lockfree/boost/lockfree/deque.hpp:95:25:   instantiated from ‘boost::lockfree::deque_anchor<T>::pair boost::lockfree::deque_anchor<T>::lrs() const volatile [with T = const boost::tuples::tuple<hpx::threads::thread_init_data, hpx::threads::thread_state_enum>*, boost::lockfree::deque_anchor<T>::pair = boost::lockfree::tagged_ptr_pair<boost::lockfree::deque_node<const boost::tuples::tuple<hpx::threads::thread_init_data, hpx::threads::thread_state_enum>*>, boost::lockfree::deque_node<const boost::tuples::tuple<hpx::threads::thread_init_data, hpx::threads::thread_state_enum>*> >]’
/home/maciek/Projects/parallex/trunk/hpx/external/lockfree/boost/lockfree/deque.hpp:405:43:   instantiated from ‘bool boost::lockfree::deque<T, freelist_t, Alloc>::pop_left(T&) [with T = const boost::tuples::tuple<hpx::threads::thread_init_data, hpx::threads::thread_state_enum>*, freelist_t = boost::lockfree::caching_freelist_t, Alloc = std::allocator<const boost::tuples::tuple<hpx::threads::thread_init_data, hpx::threads::thread_state_enum>*>]’
/home/maciek/Projects/parallex/trunk/hpx/hpx/runtime/threads/policies/thread_deque.hpp:39:32:   instantiated from ‘bool hpx::threads::policies::dequeue(Queue&, Value&) [with Queue = boost::lockfree::deque<const boost::tuples::tuple<hpx::threads::thread_init_data, hpx::threads::thread_state_enum>*>, Value = const boost::tuples::tuple<hpx::threads::thread_init_data, hpx::threads::thread_state_enum>*]’
/home/maciek/Projects/parallex/trunk/hpx/hpx/runtime/threads/policies/thread_deque.hpp:86:55:   instantiated from here
/home/maciek/Projects/parallex/trunk/hpx/external/atomic/boost/atomic/detail/fallback.hpp:32:9: warning: cast from type ‘const volatile boost::lockfree::tagged_ptr_pair<boost::lockfree::deque_node<const boost::tuples::tuple<hpx::threads::thread_init_data, hpx::threads::thread_state_enum>*>, boost::lockfree::deque_node<const boost::tuples::tuple<hpx::threads::thread_init_data, hpx::threads::thread_state_enum>*> >*’ to type ‘boost::lockfree::tagged_ptr_pair<boost::lockfree::deque_node<const boost::tuples::tuple<hpx::threads::thread_init_data, hpx::threads::thread_state_enum>*>, boost::lockfree::deque_node<const boost::tuples::tuple<hpx::threads::thread_init_data, hpx::threads::thread_state_enum>*> >*’ casts away qualifiers [-Wcast-qual]
@brycelelbach
Copy link
Member Author

[comment by blelbach] [Trac time Sat Dec 10 19:47:42 2011] Can't reproduce this.

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

1 participant