Changeset 44727


Ignore:
Timestamp:
Apr 22, 2008, 11:46:15 PM (10 years ago)
Author:
chris_kohlhoff
Message:

Fix or suppress MSVC level 4 warnings. Fixes #1703.

Location:
trunk
Files:
65 edited

Legend:

Unmodified
Added
Removed
  • trunk/boost/asio/detail/push_options.hpp

    r43472 r44727  
    8888# pragma warning (disable:4103)
    8989# pragma warning (push)
     90# pragma warning (disable:4127)
    9091# pragma warning (disable:4244)
    9192# pragma warning (disable:4355)
     93# pragma warning (disable:4512)
    9294# pragma warning (disable:4675)
    9395# if defined(_M_IX86) && defined(_Wp64)
  • trunk/boost/asio/detail/socket_ops.hpp

    r44674 r44727  
    181181{
    182182#if defined(BOOST_WINDOWS) || defined(__CYGWIN__)
     183  (void)(af);
     184  (void)(type);
     185  (void)(protocol);
     186  (void)(sv);
    183187  ec = boost::asio::error::operation_not_supported;
    184188  return -1;
  • trunk/boost/asio/detail/win_iocp_socket_service.hpp

    r44679 r44727  
    12161216
    12171217  // Wait until data can be received without blocking.
    1218   size_t receive(implementation_type& impl,
    1219       const null_buffers& buffers,
     1218  size_t receive(implementation_type& impl, const null_buffers&,
    12201219      socket_base::message_flags, boost::system::error_code& ec)
    12211220  {
     
    15311530  // Wait until data can be received without blocking.
    15321531  size_t receive_from(implementation_type& impl,
    1533       const null_buffers& buffers, endpoint_type& sender_endpoint,
     1532      const null_buffers&, endpoint_type& sender_endpoint,
    15341533      socket_base::message_flags, boost::system::error_code& ec)
    15351534  {
     
    18461845
    18471846  private:
    1848     static void do_completion_impl(operation* op,
    1849         DWORD last_error, size_t bytes_transferred)
     1847    static void do_completion_impl(operation* op, DWORD last_error, size_t)
    18501848    {
    18511849      // Take ownership of the operation object.
  • trunk/libs/asio/test/basic_datagram_socket.cpp

    r43472 r44727  
    1919#include "unit_test.hpp"
    2020
    21 test_suite* init_unit_test_suite(int argc, char* argv[])
     21test_suite* init_unit_test_suite(int, char*[])
    2222{
    2323  test_suite* test = BOOST_TEST_SUITE("basic_datagram_socket");
  • trunk/libs/asio/test/basic_deadline_timer.cpp

    r43472 r44727  
    1919#include "unit_test.hpp"
    2020
    21 test_suite* init_unit_test_suite(int argc, char* argv[])
     21test_suite* init_unit_test_suite(int, char*[])
    2222{
    2323  test_suite* test = BOOST_TEST_SUITE("basic_deadline_timer");
  • trunk/libs/asio/test/basic_socket_acceptor.cpp

    r43472 r44727  
    1919#include "unit_test.hpp"
    2020
    21 test_suite* init_unit_test_suite(int argc, char* argv[])
     21test_suite* init_unit_test_suite(int, char*[])
    2222{
    2323  test_suite* test = BOOST_TEST_SUITE("basic_socket_acceptor");
  • trunk/libs/asio/test/basic_stream_socket.cpp

    r43472 r44727  
    1919#include "unit_test.hpp"
    2020
    21 test_suite* init_unit_test_suite(int argc, char* argv[])
     21test_suite* init_unit_test_suite(int, char*[])
    2222{
    2323  test_suite* test = BOOST_TEST_SUITE("basic_stream_socket");
  • trunk/libs/asio/test/buffer.cpp

    r43472 r44727  
    140140//------------------------------------------------------------------------------
    141141
    142 test_suite* init_unit_test_suite(int argc, char* argv[])
     142test_suite* init_unit_test_suite(int, char*[])
    143143{
    144144  test_suite* test = BOOST_TEST_SUITE("buffer");
  • trunk/libs/asio/test/buffered_read_stream.cpp

    r43472 r44727  
    210210}
    211211
    212 test_suite* init_unit_test_suite(int argc, char* argv[])
     212test_suite* init_unit_test_suite(int, char*[])
    213213{
    214214  test_suite* test = BOOST_TEST_SUITE("buffered_read_stream");
  • trunk/libs/asio/test/buffered_stream.cpp

    r43472 r44727  
    225225}
    226226
    227 test_suite* init_unit_test_suite(int argc, char* argv[])
     227test_suite* init_unit_test_suite(int, char*[])
    228228{
    229229  test_suite* test = BOOST_TEST_SUITE("buffered_stream");
  • trunk/libs/asio/test/buffered_write_stream.cpp

    r43472 r44727  
    225225}
    226226
    227 test_suite* init_unit_test_suite(int argc, char* argv[])
     227test_suite* init_unit_test_suite(int, char*[])
    228228{
    229229  test_suite* test = BOOST_TEST_SUITE("buffered_write_stream");
  • trunk/libs/asio/test/completion_condition.cpp

    r43472 r44727  
    1919#include "unit_test.hpp"
    2020
    21 test_suite* init_unit_test_suite(int argc, char* argv[])
     21test_suite* init_unit_test_suite(int, char*[])
    2222{
    2323  test_suite* test = BOOST_TEST_SUITE("completion_condition");
  • trunk/libs/asio/test/datagram_socket_service.cpp

    r43472 r44727  
    1919#include "unit_test.hpp"
    2020
    21 test_suite* init_unit_test_suite(int argc, char* argv[])
     21test_suite* init_unit_test_suite(int, char*[])
    2222{
    2323  test_suite* test = BOOST_TEST_SUITE("datagram_socket_service");
  • trunk/libs/asio/test/deadline_timer.cpp

    r43472 r44727  
    180180}
    181181
    182 test_suite* init_unit_test_suite(int argc, char* argv[])
     182test_suite* init_unit_test_suite(int, char*[])
    183183{
    184184  test_suite* test = BOOST_TEST_SUITE("deadline_timer");
  • trunk/libs/asio/test/deadline_timer_service.cpp

    r43472 r44727  
    1919#include "unit_test.hpp"
    2020
    21 test_suite* init_unit_test_suite(int argc, char* argv[])
     21test_suite* init_unit_test_suite(int, char*[])
    2222{
    2323  test_suite* test = BOOST_TEST_SUITE("deadline_timer_service");
  • trunk/libs/asio/test/error.cpp

    r43472 r44727  
    8383}
    8484
    85 test_suite* init_unit_test_suite(int argc, char* argv[])
     85test_suite* init_unit_test_suite(int, char*[])
    8686{
    8787  test_suite* test = BOOST_TEST_SUITE("error");
  • trunk/libs/asio/test/io_service.cpp

    r43472 r44727  
    235235}
    236236
    237 test_suite* init_unit_test_suite(int argc, char* argv[])
     237test_suite* init_unit_test_suite(int, char*[])
    238238{
    239239  test_suite* test = BOOST_TEST_SUITE("io_service");
  • trunk/libs/asio/test/ip/address.cpp

    r43472 r44727  
    1919#include "../unit_test.hpp"
    2020
    21 test_suite* init_unit_test_suite(int argc, char* argv[])
     21test_suite* init_unit_test_suite(int, char*[])
    2222{
    2323  test_suite* test = BOOST_TEST_SUITE("ip/address");
  • trunk/libs/asio/test/ip/address_v4.cpp

    r43472 r44727  
    125125//------------------------------------------------------------------------------
    126126
    127 test_suite* init_unit_test_suite(int argc, char* argv[])
     127test_suite* init_unit_test_suite(int, char*[])
    128128{
    129129  test_suite* test = BOOST_TEST_SUITE("ip/address_v4");
  • trunk/libs/asio/test/ip/address_v6.cpp

    r43472 r44727  
    146146//------------------------------------------------------------------------------
    147147
    148 test_suite* init_unit_test_suite(int argc, char* argv[])
     148test_suite* init_unit_test_suite(int, char*[])
    149149{
    150150  test_suite* test = BOOST_TEST_SUITE("ip/address_v6");
  • trunk/libs/asio/test/ip/basic_endpoint.cpp

    r43472 r44727  
    1919#include "../unit_test.hpp"
    2020
    21 test_suite* init_unit_test_suite(int argc, char* argv[])
     21test_suite* init_unit_test_suite(int, char*[])
    2222{
    2323  test_suite* test = BOOST_TEST_SUITE("ip/basic_endpoint");
  • trunk/libs/asio/test/ip/basic_resolver.cpp

    r43472 r44727  
    1919#include "../unit_test.hpp"
    2020
    21 test_suite* init_unit_test_suite(int argc, char* argv[])
     21test_suite* init_unit_test_suite(int, char*[])
    2222{
    2323  test_suite* test = BOOST_TEST_SUITE("ip/basic_resolver");
  • trunk/libs/asio/test/ip/basic_resolver_entry.cpp

    r43472 r44727  
    1919#include "../unit_test.hpp"
    2020
    21 test_suite* init_unit_test_suite(int argc, char* argv[])
     21test_suite* init_unit_test_suite(int, char*[])
    2222{
    2323  test_suite* test = BOOST_TEST_SUITE("ip/basic_resolver_entry");
  • trunk/libs/asio/test/ip/basic_resolver_iterator.cpp

    r43472 r44727  
    1919#include "../unit_test.hpp"
    2020
    21 test_suite* init_unit_test_suite(int argc, char* argv[])
     21test_suite* init_unit_test_suite(int, char*[])
    2222{
    2323  test_suite* test = BOOST_TEST_SUITE("ip/basic_resolver_iterator");
  • trunk/libs/asio/test/ip/basic_resolver_query.cpp

    r43472 r44727  
    1919#include "../unit_test.hpp"
    2020
    21 test_suite* init_unit_test_suite(int argc, char* argv[])
     21test_suite* init_unit_test_suite(int, char*[])
    2222{
    2323  test_suite* test = BOOST_TEST_SUITE("ip/basic_resolver_query");
  • trunk/libs/asio/test/ip/host_name.cpp

    r43472 r44727  
    5050//------------------------------------------------------------------------------
    5151
    52 test_suite* init_unit_test_suite(int argc, char* argv[])
     52test_suite* init_unit_test_suite(int, char*[])
    5353{
    5454  test_suite* test = BOOST_TEST_SUITE("ip/host_name");
  • trunk/libs/asio/test/ip/multicast.cpp

    r43472 r44727  
    341341//------------------------------------------------------------------------------
    342342
    343 test_suite* init_unit_test_suite(int argc, char* argv[])
     343test_suite* init_unit_test_suite(int, char*[])
    344344{
    345345  test_suite* test = BOOST_TEST_SUITE("ip/multicast");
  • trunk/libs/asio/test/ip/resolver_query_base.cpp

    r43472 r44727  
    1919#include "../unit_test.hpp"
    2020
    21 test_suite* init_unit_test_suite(int argc, char* argv[])
     21test_suite* init_unit_test_suite(int, char*[])
    2222{
    2323  test_suite* test = BOOST_TEST_SUITE("ip/resolver_query_base");
  • trunk/libs/asio/test/ip/resolver_service.cpp

    r43472 r44727  
    1919#include "../unit_test.hpp"
    2020
    21 test_suite* init_unit_test_suite(int argc, char* argv[])
     21test_suite* init_unit_test_suite(int, char*[])
    2222{
    2323  test_suite* test = BOOST_TEST_SUITE("ip/resolver_service");
  • trunk/libs/asio/test/ip/tcp.cpp

    r44673 r44727  
    372372//------------------------------------------------------------------------------
    373373
    374 test_suite* init_unit_test_suite(int argc, char* argv[])
     374test_suite* init_unit_test_suite(int, char*[])
    375375{
    376376  test_suite* test = BOOST_TEST_SUITE("ip/tcp");
  • trunk/libs/asio/test/ip/udp.cpp

    r44673 r44727  
    326326//------------------------------------------------------------------------------
    327327
    328 test_suite* init_unit_test_suite(int argc, char* argv[])
     328test_suite* init_unit_test_suite(int, char*[])
    329329{
    330330  test_suite* test = BOOST_TEST_SUITE("ip/udp");
  • trunk/libs/asio/test/ip/unicast.cpp

    r43472 r44727  
    163163//------------------------------------------------------------------------------
    164164
    165 test_suite* init_unit_test_suite(int argc, char* argv[])
     165test_suite* init_unit_test_suite(int, char*[])
    166166{
    167167  test_suite* test = BOOST_TEST_SUITE("ip/unicast");
  • trunk/libs/asio/test/ip/v6_only.cpp

    r43472 r44727  
    126126//------------------------------------------------------------------------------
    127127
    128 test_suite* init_unit_test_suite(int argc, char* argv[])
     128test_suite* init_unit_test_suite(int, char*[])
    129129{
    130130  test_suite* test = BOOST_TEST_SUITE("ip/v6_only");
  • trunk/libs/asio/test/is_read_buffered.cpp

    r43472 r44727  
    119119}
    120120
    121 test_suite* init_unit_test_suite(int argc, char* argv[])
     121test_suite* init_unit_test_suite(int, char*[])
    122122{
    123123  test_suite* test = BOOST_TEST_SUITE("is_read_buffered");
  • trunk/libs/asio/test/is_write_buffered.cpp

    r43472 r44727  
    119119}
    120120
    121 test_suite* init_unit_test_suite(int argc, char* argv[])
     121test_suite* init_unit_test_suite(int, char*[])
    122122{
    123123  test_suite* test = BOOST_TEST_SUITE("is_write_buffered");
  • trunk/libs/asio/test/local/basic_endpoint.cpp

    r44674 r44727  
    1919#include "../unit_test.hpp"
    2020
    21 test_suite* init_unit_test_suite(int argc, char* argv[])
     21test_suite* init_unit_test_suite(int, char*[])
    2222{
    2323  test_suite* test = BOOST_TEST_SUITE("local/basic_endpoint");
  • trunk/libs/asio/test/local/connect_pair.cpp

    r44674 r44727  
    6969//------------------------------------------------------------------------------
    7070
    71 test_suite* init_unit_test_suite(int argc, char* argv[])
     71test_suite* init_unit_test_suite(int, char*[])
    7272{
    7373  test_suite* test = BOOST_TEST_SUITE("local/connect_pair");
  • trunk/libs/asio/test/local/datagram_protocol.cpp

    r44674 r44727  
    226226//------------------------------------------------------------------------------
    227227
    228 test_suite* init_unit_test_suite(int argc, char* argv[])
     228test_suite* init_unit_test_suite(int, char*[])
    229229{
    230230  test_suite* test = BOOST_TEST_SUITE("local/datagram_protocol");
  • trunk/libs/asio/test/local/stream_protocol.cpp

    r44674 r44727  
    203203//------------------------------------------------------------------------------
    204204
    205 test_suite* init_unit_test_suite(int argc, char* argv[])
     205test_suite* init_unit_test_suite(int, char*[])
    206206{
    207207  test_suite* test = BOOST_TEST_SUITE("local/stream_protocol");
  • trunk/libs/asio/test/placeholders.cpp

    r43472 r44727  
    1919#include "unit_test.hpp"
    2020
    21 test_suite* init_unit_test_suite(int argc, char* argv[])
     21test_suite* init_unit_test_suite(int, char*[])
    2222{
    2323  test_suite* test = BOOST_TEST_SUITE("placeholders");
  • trunk/libs/asio/test/posix/basic_descriptor.cpp

    r44675 r44727  
    2020#include "../unit_test.hpp"
    2121
    22 test_suite* init_unit_test_suite(int argc, char* argv[])
     22test_suite* init_unit_test_suite(int, char*[])
    2323{
    2424  test_suite* test = BOOST_TEST_SUITE("posix/basic_descriptor");
  • trunk/libs/asio/test/posix/basic_stream_descriptor.cpp

    r44675 r44727  
    2020#include "../unit_test.hpp"
    2121
    22 test_suite* init_unit_test_suite(int argc, char* argv[])
     22test_suite* init_unit_test_suite(int, char*[])
    2323{
    2424  test_suite* test = BOOST_TEST_SUITE("posix/basic_stream_descriptor");
  • trunk/libs/asio/test/posix/descriptor_base.cpp

    r44675 r44727  
    2020#include "../unit_test.hpp"
    2121
    22 test_suite* init_unit_test_suite(int argc, char* argv[])
     22test_suite* init_unit_test_suite(int, char*[])
    2323{
    2424  test_suite* test = BOOST_TEST_SUITE("posix/descriptor_base");
  • trunk/libs/asio/test/posix/stream_descriptor.cpp

    r44675 r44727  
    120120
    121121//------------------------------------------------------------------------------
    122 test_suite* init_unit_test_suite(int argc, char* argv[])
     122test_suite* init_unit_test_suite(int, char*[])
    123123{
    124124  test_suite* test = BOOST_TEST_SUITE("posix/stream_descriptor");
  • trunk/libs/asio/test/posix/stream_descriptor_service.cpp

    r44675 r44727  
    2020#include "../unit_test.hpp"
    2121
    22 test_suite* init_unit_test_suite(int argc, char* argv[])
     22test_suite* init_unit_test_suite(int, char*[])
    2323{
    2424  test_suite* test = BOOST_TEST_SUITE("posix/stream_descriptor_service");
  • trunk/libs/asio/test/read.cpp

    r43472 r44727  
    620620}
    621621
    622 test_suite* init_unit_test_suite(int argc, char* argv[])
     622test_suite* init_unit_test_suite(int, char*[])
    623623{
    624624  test_suite* test = BOOST_TEST_SUITE("read");
  • trunk/libs/asio/test/read_until.cpp

    r43472 r44727  
    422422}
    423423
    424 test_suite* init_unit_test_suite(int argc, char* argv[])
     424test_suite* init_unit_test_suite(int, char*[])
    425425{
    426426  test_suite* test = BOOST_TEST_SUITE("read_until");
  • trunk/libs/asio/test/socket_acceptor_service.cpp

    r43472 r44727  
    1919#include "unit_test.hpp"
    2020
    21 test_suite* init_unit_test_suite(int argc, char* argv[])
     21test_suite* init_unit_test_suite(int, char*[])
    2222{
    2323  test_suite* test = BOOST_TEST_SUITE("socket_acceptor_service");
  • trunk/libs/asio/test/socket_base.cpp

    r43472 r44727  
    645645//------------------------------------------------------------------------------
    646646
    647 test_suite* init_unit_test_suite(int argc, char* argv[])
     647test_suite* init_unit_test_suite(int, char*[])
    648648{
    649649  test_suite* test = BOOST_TEST_SUITE("socket_base");
  • trunk/libs/asio/test/ssl/basic_context.cpp

    r43472 r44727  
    1919#include "../unit_test.hpp"
    2020
    21 test_suite* init_unit_test_suite(int argc, char* argv[])
     21test_suite* init_unit_test_suite(int, char*[])
    2222{
    2323  test_suite* test = BOOST_TEST_SUITE("ssl/basic_context");
  • trunk/libs/asio/test/ssl/context.cpp

    r43472 r44727  
    1919#include "../unit_test.hpp"
    2020
    21 test_suite* init_unit_test_suite(int argc, char* argv[])
     21test_suite* init_unit_test_suite(int, char*[])
    2222{
    2323  test_suite* test = BOOST_TEST_SUITE("ssl/context");
  • trunk/libs/asio/test/ssl/context_base.cpp

    r43472 r44727  
    1919#include "../unit_test.hpp"
    2020
    21 test_suite* init_unit_test_suite(int argc, char* argv[])
     21test_suite* init_unit_test_suite(int, char*[])
    2222{
    2323  test_suite* test = BOOST_TEST_SUITE("ssl/context_base");
  • trunk/libs/asio/test/ssl/context_service.cpp

    r43472 r44727  
    1919#include "../unit_test.hpp"
    2020
    21 test_suite* init_unit_test_suite(int argc, char* argv[])
     21test_suite* init_unit_test_suite(int, char*[])
    2222{
    2323  test_suite* test = BOOST_TEST_SUITE("ssl/context_service");
  • trunk/libs/asio/test/ssl/stream.cpp

    r43472 r44727  
    119119//------------------------------------------------------------------------------
    120120
    121 test_suite* init_unit_test_suite(int argc, char* argv[])
     121test_suite* init_unit_test_suite(int, char*[])
    122122{
    123123  test_suite* test = BOOST_TEST_SUITE("ssl/stream");
  • trunk/libs/asio/test/ssl/stream_base.cpp

    r43472 r44727  
    1919#include "../unit_test.hpp"
    2020
    21 test_suite* init_unit_test_suite(int argc, char* argv[])
     21test_suite* init_unit_test_suite(int, char*[])
    2222{
    2323  test_suite* test = BOOST_TEST_SUITE("ssl/stream_base");
  • trunk/libs/asio/test/ssl/stream_service.cpp

    r43472 r44727  
    1919#include "../unit_test.hpp"
    2020
    21 test_suite* init_unit_test_suite(int argc, char* argv[])
     21test_suite* init_unit_test_suite(int, char*[])
    2222{
    2323  test_suite* test = BOOST_TEST_SUITE("ssl/stream_service");
  • trunk/libs/asio/test/strand.cpp

    r43472 r44727  
    164164}
    165165
    166 test_suite* init_unit_test_suite(int argc, char* argv[])
     166test_suite* init_unit_test_suite(int, char*[])
    167167{
    168168  test_suite* test = BOOST_TEST_SUITE("strand");
  • trunk/libs/asio/test/stream_socket_service.cpp

    r43472 r44727  
    1919#include "unit_test.hpp"
    2020
    21 test_suite* init_unit_test_suite(int argc, char* argv[])
     21test_suite* init_unit_test_suite(int, char*[])
    2222{
    2323  test_suite* test = BOOST_TEST_SUITE("stream_socket_service");
  • trunk/libs/asio/test/time_traits.cpp

    r43472 r44727  
    1919#include "unit_test.hpp"
    2020
    21 test_suite* init_unit_test_suite(int argc, char* argv[])
     21test_suite* init_unit_test_suite(int, char*[])
    2222{
    2323  test_suite* test = BOOST_TEST_SUITE("time_traits");
  • trunk/libs/asio/test/unit_test.hpp

    r43472 r44727  
    3232# pragma warning (push)
    3333# pragma warning (disable:4244)
     34# pragma warning (disable:4702)
    3435#endif // defined(BOOST_MSVC)
    3536
  • trunk/libs/asio/test/windows/basic_handle.cpp

    r44676 r44727  
    2020#include "../unit_test.hpp"
    2121
    22 test_suite* init_unit_test_suite(int argc, char* argv[])
     22test_suite* init_unit_test_suite(int, char*[])
    2323{
    2424  test_suite* test = BOOST_TEST_SUITE("windows/basic_handle");
  • trunk/libs/asio/test/windows/basic_stream_handle.cpp

    r44676 r44727  
    2020#include "../unit_test.hpp"
    2121
    22 test_suite* init_unit_test_suite(int argc, char* argv[])
     22test_suite* init_unit_test_suite(int, char*[])
    2323{
    2424  test_suite* test = BOOST_TEST_SUITE("windows/basic_stream_handle");
  • trunk/libs/asio/test/windows/stream_handle.cpp

    r44676 r44727  
    107107
    108108//------------------------------------------------------------------------------
    109 test_suite* init_unit_test_suite(int argc, char* argv[])
     109test_suite* init_unit_test_suite(int, char*[])
    110110{
    111111  test_suite* test = BOOST_TEST_SUITE("windows/stream_handle");
  • trunk/libs/asio/test/windows/stream_handle_service.cpp

    r44676 r44727  
    2020#include "../unit_test.hpp"
    2121
    22 test_suite* init_unit_test_suite(int argc, char* argv[])
     22test_suite* init_unit_test_suite(int, char*[])
    2323{
    2424  test_suite* test = BOOST_TEST_SUITE("windows/stream_handle_service");
  • trunk/libs/asio/test/write.cpp

    r43472 r44727  
    574574}
    575575
    576 test_suite* init_unit_test_suite(int argc, char* argv[])
     576test_suite* init_unit_test_suite(int, char*[])
    577577{
    578578  test_suite* test = BOOST_TEST_SUITE("write");
Note: See TracChangeset for help on using the changeset viewer.