Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r52290 - trunk/boost/asio/detail
From: chris_at_[hidden]
Date: 2009-04-09 08:03:02


Author: chris_kohlhoff
Date: 2009-04-09 08:03:01 EDT (Thu, 09 Apr 2009)
New Revision: 52290
URL: http://svn.boost.org/trac/boost/changeset/52290

Log:
Fix some warnings that occur with MSVC at warning level 4. Fixes #2828.

Text files modified:
   trunk/boost/asio/detail/win_iocp_overlapped_ptr.hpp | 3 ++-
   trunk/boost/asio/detail/win_iocp_serial_port_service.hpp | 2 +-
   2 files changed, 3 insertions(+), 2 deletions(-)

Modified: trunk/boost/asio/detail/win_iocp_overlapped_ptr.hpp
==============================================================================
--- trunk/boost/asio/detail/win_iocp_overlapped_ptr.hpp (original)
+++ trunk/boost/asio/detail/win_iocp_overlapped_ptr.hpp 2009-04-09 08:03:01 EDT (Thu, 09 Apr 2009)
@@ -104,7 +104,8 @@
     if (ptr_)
     {
       ptr_->ec_ = ec;
- ptr_->io_service_.post_completion(ptr_, 0, bytes_transferred);
+ ptr_->io_service_.post_completion(ptr_, 0,
+ static_cast<DWORD>(bytes_transferred));
       ptr_ = 0;
     }
   }

Modified: trunk/boost/asio/detail/win_iocp_serial_port_service.hpp
==============================================================================
--- trunk/boost/asio/detail/win_iocp_serial_port_service.hpp (original)
+++ trunk/boost/asio/detail/win_iocp_serial_port_service.hpp 2009-04-09 08:03:01 EDT (Thu, 09 Apr 2009)
@@ -237,7 +237,7 @@
   }
 
   // Send a break sequence to the serial port.
- boost::system::error_code send_break(implementation_type& impl,
+ boost::system::error_code send_break(implementation_type&,
       boost::system::error_code& ec)
   {
     ec = boost::asio::error::operation_not_supported;


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk