Modify

Ticket #3611 (closed Patches: fixed)

Opened 4 years ago

Last modified 4 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:

Description

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:

test_futures.cpp
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  https://svn.boost.org/trac/boost/ticket/3606).

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

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

Change History

Changed 4 years ago by johnmaddock

comment:1 Changed 4 years ago by anthonyw

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

Fixed on trunk.

View

Add a comment

Modify Ticket

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


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

 
Note: See TracTickets for help on using tickets.