[thread] Lots of warings on MingW32?

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?
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, Thanks, John.

"John Maddock" <john@johnmaddock.co.uk> 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
participants (2)
-
Anthony Williams
-
John Maddock