Fix or suppress MSVC level /W4 warnings.
This commit is contained in:
parent
03df12147a
commit
30724dc7a2
@ -87,8 +87,10 @@
|
||||
|
||||
# pragma warning (disable:4103)
|
||||
# pragma warning (push)
|
||||
# pragma warning (disable:4127)
|
||||
# pragma warning (disable:4244)
|
||||
# pragma warning (disable:4355)
|
||||
# pragma warning (disable:4512)
|
||||
# pragma warning (disable:4675)
|
||||
# if defined(_M_IX86) && defined(_Wp64)
|
||||
// The /Wp64 option is broken. If you want to check 64 bit portability, use a
|
||||
|
@ -179,6 +179,10 @@ inline int socketpair(int af, int type, int protocol,
|
||||
socket_type sv[2], asio::error_code& ec)
|
||||
{
|
||||
#if defined(BOOST_WINDOWS) || defined(__CYGWIN__)
|
||||
(void)(af);
|
||||
(void)(type);
|
||||
(void)(protocol);
|
||||
(void)(sv);
|
||||
ec = asio::error::operation_not_supported;
|
||||
return -1;
|
||||
#else
|
||||
|
@ -1214,8 +1214,7 @@ public:
|
||||
}
|
||||
|
||||
// Wait until data can be received without blocking.
|
||||
size_t receive(implementation_type& impl,
|
||||
const null_buffers& buffers,
|
||||
size_t receive(implementation_type& impl, const null_buffers&,
|
||||
socket_base::message_flags, asio::error_code& ec)
|
||||
{
|
||||
if (!is_open(impl))
|
||||
@ -1529,7 +1528,7 @@ public:
|
||||
|
||||
// Wait until data can be received without blocking.
|
||||
size_t receive_from(implementation_type& impl,
|
||||
const null_buffers& buffers, endpoint_type& sender_endpoint,
|
||||
const null_buffers&, endpoint_type& sender_endpoint,
|
||||
socket_base::message_flags, asio::error_code& ec)
|
||||
{
|
||||
if (!is_open(impl))
|
||||
@ -1844,8 +1843,7 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
static void do_completion_impl(operation* op,
|
||||
DWORD last_error, size_t bytes_transferred)
|
||||
static void do_completion_impl(operation* op, DWORD last_error, size_t)
|
||||
{
|
||||
// Take ownership of the operation object.
|
||||
typedef accept_operation<Socket, Handler> op_type;
|
||||
|
@ -31,6 +31,7 @@
|
||||
#if defined(BOOST_MSVC)
|
||||
# pragma warning (push)
|
||||
# pragma warning (disable:4244)
|
||||
# pragma warning (disable:4702)
|
||||
#endif // defined(BOOST_MSVC)
|
||||
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
Loading…
Reference in New Issue
Block a user