Ticket #3611 (closed Patches: fixed)

Opened 8 years ago

Last modified 7 years ago

Warning suppression fixes for Boost.Thread

Reported by: johnmaddock Owned by: anthonyw
Milestone: Boost 1.41.0 Component: thread
Version: Boost 1.40.0 Severity: Problem
Keywords: Cc:


The attached patches fix/suppress the few warnings that Boost.Thread produces (in Trunk) when building with msvc and /W4 or gcc and -Wall -Wextra -pedantic.

The warnings fixed are:

d:\data\boost\trunk\boost/thread/future.hpp(142) : warning C4512: 'boost::detail::future_object_base::relocker' : assignment operator could not be generated
        d:\data\boost\trunk\boost/thread/future.hpp(130) : see declaration of 'boost::detail::future_object_base::relocker'
test_futures.cpp(559) : warning C4100: 'pi' : unreferenced formal parameter
../../../libs/thread/src/pthread/once.cpp:20:1: warning: use of C99 long long integer constant
../../../libs/thread/src/pthread/once.cpp:49:1: warning: use of C99 long long integer constant

The remaining warnings (and quite a few of them) come from the Thread libs dependencies - mostly DateTime? (see

Also note that test_thread_return_local and test_thread_move are both failing in Trunk (at least for me).

Let me know if you want me to commit these,

Thanks, John.


warnings.diff (2.2 KB) - added by johnmaddock 8 years ago.

Change History

Changed 8 years ago by johnmaddock

comment:1 Changed 7 years ago by anthonyw

  • Status changed from new to closed
  • Resolution set to fixed

Fixed on trunk.


Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
The resolution will be deleted. Next status will be 'reopened'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.