2
0
mirror of https://github.com/boostorg/asio.git synced 2026-01-27 18:42:07 +00:00

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

[SVN r52290]
This commit is contained in:
Christopher Kohlhoff
2009-04-09 12:03:01 +00:00
parent 59a8830f00
commit 28e59ef71c
2 changed files with 3 additions and 2 deletions

View File

@@ -104,7 +104,8 @@ public:
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;
}
}

View File

@@ -237,7 +237,7 @@ public:
}
// 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;