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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user