Opened 13 years ago
Closed 12 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: |
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 (1)
Change History (2)
by , 13 years ago
| Attachment: | warnings.diff added |
|---|
comment:1 by , 12 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

Fixed on trunk.