|
Boost : |
From: Anthony Williams (anthony_w.geo_at_[hidden])
Date: 2007-10-19 11:31:41
"John Maddock" <john_at_[hidden]> writes:
> I'm getting lots of warnings of the kind:
>
> ../../../boost/thread/win32/basic_timed_mutex.hpp: In member function `void
> boost::detail::basic_timed_mutex::unlock()':
> ../../../boost/thread/win32/basic_timed_mutex.hpp:116: warning: integer
> overflow in expression
>
>>From gcc-mingw when using the new Boost.Thread, should I be concerned?
No. It's just that the lock mask is 0x80000000, so it's a boundary value when
negating. The result should be right, though. Anyway, I've recoded to remove
the warning.
> Also from VC++ I see:
>
> ..\..\..\boost/thread/thread_time.hpp(33) : warning C4244: 'return' :
> conversion from '__int64' to 'unsigned int', possible loss of data
> ..\..\..\boost/thread/xtime.hpp(60) : warning C4244: '=' : conversion from
> '__int64' to 'boost::xtime::xtime_nsec_t', possible loss of data
>
> Which are rather annoying,
I've committed some fixes which should remove the warnings.
Anthony
-- Anthony Williams Just Software Solutions Ltd - http://www.justsoftwaresolutions.co.uk Registered in England, Company Number 5478976. Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk