Opened 8 years ago

Last modified 8 years ago

#10376 new Bugs

VS2013: new compiler warnings since v1.56.0

Reported by: lex21@… Owned by: chris_kohlhoff
Milestone: To Be Determined Component: asio
Version: Boost 1.56.0 Severity: Problem
Keywords: Cc:

Description

There are two new level 3 compiler warnings in asio, when compiling with Visual Studio 2013 x64.

1>D:\source\VS2013\libsrc\boost_1_56_0\boost/asio/detail/impl/socket_ops.ipp(1968): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data

1>D:\source\VS2013\libsrc\boost_1_56_0\boost/asio/detail/impl/socket_ops.ipp(2172): warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data

Change History (2)

comment:1 by lex21@…, 8 years ago

Submitted pull request. See [github.com/boostorg/asio/pull/9] (it will not allow me to use a real link address, because it is flagged as spam).

comment:2 by anonymous, 8 years ago

I have to move to 1.56 because we're moving to VS2013 and libboost-serialization doesn't work without a patch.

We have warnings as errors and don't want to turn that off. I also don't want to pollute my code with pragma warning disables.

For now, I've casted the size_t to int in the two places this warning was happening in socket_ops.ipp. Hopefully, the next release has a proper fix.

Note: See TracTickets for help on using tickets.