Subject: [Boost-bugs] [Boost C++ Libraries] #11779: Boost.Lockfree: Implicit conversion loses integer precision warnings
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-11-01 14:38:40
#11779: Boost.Lockfree: Implicit conversion loses integer precision warnings
------------------------------+--------------------------
Reporter: wise.monkey@⦠| Owner: timblechmann
Type: Bugs | Status: new
Milestone: To Be Determined | Component: lockfree
Version: Boost 1.59.0 | Severity: Problem
Keywords: |
------------------------------+--------------------------
Xcode Version 7.1 (7B91b)
When using `boost::lockfree::queue` I get the following implicit
conversion warnings:
{{{
In file included from
/foobar/source/foundation/concurrency/task_queue.cpp:11:
In file included from
/foobar/libraries/boost/install.osx/include/boost/lockfree/queue.hpp:21:
In file included from
/foobar/libraries/boost/install.osx/include/boost/lockfree/detail/freelist.hpp:23:
In file included from
/foobar/libraries/boost/install.osx/include/boost/lockfree/detail/tagged_ptr.hpp:18:
/foobar/libraries/boost/install.osx/include/boost/lockfree/detail/tagged_ptr_ptrcompression.hpp:59:30:
warning: implicit conversion loses integer precision: 'int' to 'tag_t'
(aka 'unsigned short') [-Wconversion]
ret.tag[tag_index] = tag;
~ ^~~
/foobar/libraries/boost/install.osx/include/boost/lockfree/detail/tagged_ptr_ptrcompression.hpp:78:13:
note: in instantiation of member function
'boost::lockfree::detail::tagged_ptr<boost::lockfree::queue<std::__1::packaged_task<void
()> *, boost::parameter::void_, boost::parameter::void_,
boost::parameter::void_>::node>::pack_ptr' requested here
ptr(pack_ptr(p, t))
^
In file included from
/foobar/source/foundation/concurrency/task_queue.cpp:11:
/foobar/libraries/boost/install.osx/include/boost/lockfree/queue.hpp:202:15:
note: in instantiation of member function
'boost::lockfree::detail::tagged_ptr<boost::lockfree::queue<std::__1::packaged_task<void
()> *, boost::parameter::void_, boost::parameter::void_,
boost::parameter::void_>::node>::tagged_ptr' requested here
head_(tagged_node_handle(0, 0)),
^
/foobar/source/foundation/concurrency/task_queue.cpp:40:29: note: in
instantiation of member function
'boost::lockfree::queue<std::__1::packaged_task<void ()> *,
boost::parameter::void_, boost::parameter::void_,
boost::parameter::void_>::queue' requested here
TaskQueueContext(void) : Queue(128) {}
}}} ^
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11779> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC