Opened 8 years ago

Closed 7 years ago

#3611 closed Patches (fixed)

Warning suppression fixes for Boost.Thread

Reported by: John Maddock Owned by: Anthony Williams
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.

Attachments (1)

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

Download all attachments as: .zip

Change History (2)

Changed 8 years ago by John Maddock

Attachment: warnings.diff added

comment:1 Changed 7 years ago by Anthony Williams

Resolution: fixed
Status: newclosed

Fixed on trunk.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Anthony Williams.
The resolution will be deleted.

Add Comment

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

Note: See TracTickets for help on using tickets.