Boost logo

Boost-Commit :

From: chris_at_[hidden]
Date: 2008-04-22 19:46:20


Author: chris_kohlhoff
Date: 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
New Revision: 44727
URL: http://svn.boost.org/trac/boost/changeset/44727

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

Text files modified:
   trunk/boost/asio/detail/push_options.hpp | 2 ++
   trunk/boost/asio/detail/socket_ops.hpp | 4 ++++
   trunk/boost/asio/detail/win_iocp_socket_service.hpp | 8 +++-----
   trunk/libs/asio/test/basic_datagram_socket.cpp | 2 +-
   trunk/libs/asio/test/basic_deadline_timer.cpp | 2 +-
   trunk/libs/asio/test/basic_socket_acceptor.cpp | 2 +-
   trunk/libs/asio/test/basic_stream_socket.cpp | 2 +-
   trunk/libs/asio/test/buffer.cpp | 2 +-
   trunk/libs/asio/test/buffered_read_stream.cpp | 2 +-
   trunk/libs/asio/test/buffered_stream.cpp | 2 +-
   trunk/libs/asio/test/buffered_write_stream.cpp | 2 +-
   trunk/libs/asio/test/completion_condition.cpp | 2 +-
   trunk/libs/asio/test/datagram_socket_service.cpp | 2 +-
   trunk/libs/asio/test/deadline_timer.cpp | 2 +-
   trunk/libs/asio/test/deadline_timer_service.cpp | 2 +-
   trunk/libs/asio/test/error.cpp | 2 +-
   trunk/libs/asio/test/io_service.cpp | 2 +-
   trunk/libs/asio/test/ip/address.cpp | 2 +-
   trunk/libs/asio/test/ip/address_v4.cpp | 2 +-
   trunk/libs/asio/test/ip/address_v6.cpp | 2 +-
   trunk/libs/asio/test/ip/basic_endpoint.cpp | 2 +-
   trunk/libs/asio/test/ip/basic_resolver.cpp | 2 +-
   trunk/libs/asio/test/ip/basic_resolver_entry.cpp | 2 +-
   trunk/libs/asio/test/ip/basic_resolver_iterator.cpp | 2 +-
   trunk/libs/asio/test/ip/basic_resolver_query.cpp | 2 +-
   trunk/libs/asio/test/ip/host_name.cpp | 2 +-
   trunk/libs/asio/test/ip/multicast.cpp | 2 +-
   trunk/libs/asio/test/ip/resolver_query_base.cpp | 2 +-
   trunk/libs/asio/test/ip/resolver_service.cpp | 2 +-
   trunk/libs/asio/test/ip/tcp.cpp | 2 +-
   trunk/libs/asio/test/ip/udp.cpp | 2 +-
   trunk/libs/asio/test/ip/unicast.cpp | 2 +-
   trunk/libs/asio/test/ip/v6_only.cpp | 2 +-
   trunk/libs/asio/test/is_read_buffered.cpp | 2 +-
   trunk/libs/asio/test/is_write_buffered.cpp | 2 +-
   trunk/libs/asio/test/local/basic_endpoint.cpp | 2 +-
   trunk/libs/asio/test/local/connect_pair.cpp | 2 +-
   trunk/libs/asio/test/local/datagram_protocol.cpp | 2 +-
   trunk/libs/asio/test/local/stream_protocol.cpp | 2 +-
   trunk/libs/asio/test/placeholders.cpp | 2 +-
   trunk/libs/asio/test/posix/basic_descriptor.cpp | 2 +-
   trunk/libs/asio/test/posix/basic_stream_descriptor.cpp | 2 +-
   trunk/libs/asio/test/posix/descriptor_base.cpp | 2 +-
   trunk/libs/asio/test/posix/stream_descriptor.cpp | 2 +-
   trunk/libs/asio/test/posix/stream_descriptor_service.cpp | 2 +-
   trunk/libs/asio/test/read.cpp | 2 +-
   trunk/libs/asio/test/read_until.cpp | 2 +-
   trunk/libs/asio/test/socket_acceptor_service.cpp | 2 +-
   trunk/libs/asio/test/socket_base.cpp | 2 +-
   trunk/libs/asio/test/ssl/basic_context.cpp | 2 +-
   trunk/libs/asio/test/ssl/context.cpp | 2 +-
   trunk/libs/asio/test/ssl/context_base.cpp | 2 +-
   trunk/libs/asio/test/ssl/context_service.cpp | 2 +-
   trunk/libs/asio/test/ssl/stream.cpp | 2 +-
   trunk/libs/asio/test/ssl/stream_base.cpp | 2 +-
   trunk/libs/asio/test/ssl/stream_service.cpp | 2 +-
   trunk/libs/asio/test/strand.cpp | 2 +-
   trunk/libs/asio/test/stream_socket_service.cpp | 2 +-
   trunk/libs/asio/test/time_traits.cpp | 2 +-
   trunk/libs/asio/test/unit_test.hpp | 1 +
   trunk/libs/asio/test/windows/basic_handle.cpp | 2 +-
   trunk/libs/asio/test/windows/basic_stream_handle.cpp | 2 +-
   trunk/libs/asio/test/windows/stream_handle.cpp | 2 +-
   trunk/libs/asio/test/windows/stream_handle_service.cpp | 2 +-
   trunk/libs/asio/test/write.cpp | 2 +-
   65 files changed, 71 insertions(+), 66 deletions(-)

Modified: trunk/boost/asio/detail/push_options.hpp
==============================================================================
--- trunk/boost/asio/detail/push_options.hpp (original)
+++ trunk/boost/asio/detail/push_options.hpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -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

Modified: trunk/boost/asio/detail/socket_ops.hpp
==============================================================================
--- trunk/boost/asio/detail/socket_ops.hpp (original)
+++ trunk/boost/asio/detail/socket_ops.hpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -180,6 +180,10 @@
     socket_type sv[2], boost::system::error_code& ec)
 {
 #if defined(BOOST_WINDOWS) || defined(__CYGWIN__)
+ (void)(af);
+ (void)(type);
+ (void)(protocol);
+ (void)(sv);
   ec = boost::asio::error::operation_not_supported;
   return -1;
 #else

Modified: trunk/boost/asio/detail/win_iocp_socket_service.hpp
==============================================================================
--- trunk/boost/asio/detail/win_iocp_socket_service.hpp (original)
+++ trunk/boost/asio/detail/win_iocp_socket_service.hpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -1215,8 +1215,7 @@
   }
 
   // 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, boost::system::error_code& ec)
   {
     if (!is_open(impl))
@@ -1530,7 +1529,7 @@
 
   // 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, boost::system::error_code& ec)
   {
     if (!is_open(impl))
@@ -1845,8 +1844,7 @@
     }
 
   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;

Modified: trunk/libs/asio/test/basic_datagram_socket.cpp
==============================================================================
--- trunk/libs/asio/test/basic_datagram_socket.cpp (original)
+++ trunk/libs/asio/test/basic_datagram_socket.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -18,7 +18,7 @@
 
 #include "unit_test.hpp"
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("basic_datagram_socket");
   test->add(BOOST_TEST_CASE(&null_test));

Modified: trunk/libs/asio/test/basic_deadline_timer.cpp
==============================================================================
--- trunk/libs/asio/test/basic_deadline_timer.cpp (original)
+++ trunk/libs/asio/test/basic_deadline_timer.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -18,7 +18,7 @@
 
 #include "unit_test.hpp"
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("basic_deadline_timer");
   test->add(BOOST_TEST_CASE(&null_test));

Modified: trunk/libs/asio/test/basic_socket_acceptor.cpp
==============================================================================
--- trunk/libs/asio/test/basic_socket_acceptor.cpp (original)
+++ trunk/libs/asio/test/basic_socket_acceptor.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -18,7 +18,7 @@
 
 #include "unit_test.hpp"
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("basic_socket_acceptor");
   test->add(BOOST_TEST_CASE(&null_test));

Modified: trunk/libs/asio/test/basic_stream_socket.cpp
==============================================================================
--- trunk/libs/asio/test/basic_stream_socket.cpp (original)
+++ trunk/libs/asio/test/basic_stream_socket.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -18,7 +18,7 @@
 
 #include "unit_test.hpp"
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("basic_stream_socket");
   test->add(BOOST_TEST_CASE(&null_test));

Modified: trunk/libs/asio/test/buffer.cpp
==============================================================================
--- trunk/libs/asio/test/buffer.cpp (original)
+++ trunk/libs/asio/test/buffer.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -139,7 +139,7 @@
 
 //------------------------------------------------------------------------------
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("buffer");
   test->add(BOOST_TEST_CASE(&buffer_compile::test));

Modified: trunk/libs/asio/test/buffered_read_stream.cpp
==============================================================================
--- trunk/libs/asio/test/buffered_read_stream.cpp (original)
+++ trunk/libs/asio/test/buffered_read_stream.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -209,7 +209,7 @@
   client_socket.async_read_some(boost::asio::buffer(read_buf), handle_read_eof);
 }
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("buffered_read_stream");
   test->add(BOOST_TEST_CASE(&test_sync_operations));

Modified: trunk/libs/asio/test/buffered_stream.cpp
==============================================================================
--- trunk/libs/asio/test/buffered_stream.cpp (original)
+++ trunk/libs/asio/test/buffered_stream.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -224,7 +224,7 @@
   client_socket.async_read_some(boost::asio::buffer(read_buf), handle_read_eof);
 }
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("buffered_stream");
   test->add(BOOST_TEST_CASE(&test_sync_operations));

Modified: trunk/libs/asio/test/buffered_write_stream.cpp
==============================================================================
--- trunk/libs/asio/test/buffered_write_stream.cpp (original)
+++ trunk/libs/asio/test/buffered_write_stream.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -224,7 +224,7 @@
   client_socket.async_read_some(boost::asio::buffer(read_buf), handle_read_eof);
 }
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("buffered_write_stream");
   test->add(BOOST_TEST_CASE(&test_sync_operations));

Modified: trunk/libs/asio/test/completion_condition.cpp
==============================================================================
--- trunk/libs/asio/test/completion_condition.cpp (original)
+++ trunk/libs/asio/test/completion_condition.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -18,7 +18,7 @@
 
 #include "unit_test.hpp"
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("completion_condition");
   test->add(BOOST_TEST_CASE(&null_test));

Modified: trunk/libs/asio/test/datagram_socket_service.cpp
==============================================================================
--- trunk/libs/asio/test/datagram_socket_service.cpp (original)
+++ trunk/libs/asio/test/datagram_socket_service.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -18,7 +18,7 @@
 
 #include "unit_test.hpp"
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("datagram_socket_service");
   test->add(BOOST_TEST_CASE(&null_test));

Modified: trunk/libs/asio/test/deadline_timer.cpp
==============================================================================
--- trunk/libs/asio/test/deadline_timer.cpp (original)
+++ trunk/libs/asio/test/deadline_timer.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -179,7 +179,7 @@
   BOOST_CHECK(expected_end < end || expected_end == end);
 }
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("deadline_timer");
   test->add(BOOST_TEST_CASE(&deadline_timer_test));

Modified: trunk/libs/asio/test/deadline_timer_service.cpp
==============================================================================
--- trunk/libs/asio/test/deadline_timer_service.cpp (original)
+++ trunk/libs/asio/test/deadline_timer_service.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -18,7 +18,7 @@
 
 #include "unit_test.hpp"
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("deadline_timer_service");
   test->add(BOOST_TEST_CASE(&null_test));

Modified: trunk/libs/asio/test/error.cpp
==============================================================================
--- trunk/libs/asio/test/error.cpp (original)
+++ trunk/libs/asio/test/error.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -82,7 +82,7 @@
   test_error_code(boost::asio::error::would_block);
 }
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("error");
   test->add(BOOST_TEST_CASE(&error_test));

Modified: trunk/libs/asio/test/io_service.cpp
==============================================================================
--- trunk/libs/asio/test/io_service.cpp (original)
+++ trunk/libs/asio/test/io_service.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -234,7 +234,7 @@
   BOOST_CHECK(exception_count == 2);
 }
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("io_service");
   test->add(BOOST_TEST_CASE(&io_service_test));

Modified: trunk/libs/asio/test/ip/address.cpp
==============================================================================
--- trunk/libs/asio/test/ip/address.cpp (original)
+++ trunk/libs/asio/test/ip/address.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -18,7 +18,7 @@
 
 #include "../unit_test.hpp"
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("ip/address");
   test->add(BOOST_TEST_CASE(&null_test));

Modified: trunk/libs/asio/test/ip/address_v4.cpp
==============================================================================
--- trunk/libs/asio/test/ip/address_v4.cpp (original)
+++ trunk/libs/asio/test/ip/address_v4.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -124,7 +124,7 @@
 
 //------------------------------------------------------------------------------
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("ip/address_v4");
   test->add(BOOST_TEST_CASE(&ip_address_v4_compile::test));

Modified: trunk/libs/asio/test/ip/address_v6.cpp
==============================================================================
--- trunk/libs/asio/test/ip/address_v6.cpp (original)
+++ trunk/libs/asio/test/ip/address_v6.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -145,7 +145,7 @@
 
 //------------------------------------------------------------------------------
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("ip/address_v6");
   test->add(BOOST_TEST_CASE(&ip_address_v6_compile::test));

Modified: trunk/libs/asio/test/ip/basic_endpoint.cpp
==============================================================================
--- trunk/libs/asio/test/ip/basic_endpoint.cpp (original)
+++ trunk/libs/asio/test/ip/basic_endpoint.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -18,7 +18,7 @@
 
 #include "../unit_test.hpp"
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("ip/basic_endpoint");
   test->add(BOOST_TEST_CASE(&null_test));

Modified: trunk/libs/asio/test/ip/basic_resolver.cpp
==============================================================================
--- trunk/libs/asio/test/ip/basic_resolver.cpp (original)
+++ trunk/libs/asio/test/ip/basic_resolver.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -18,7 +18,7 @@
 
 #include "../unit_test.hpp"
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("ip/basic_resolver");
   test->add(BOOST_TEST_CASE(&null_test));

Modified: trunk/libs/asio/test/ip/basic_resolver_entry.cpp
==============================================================================
--- trunk/libs/asio/test/ip/basic_resolver_entry.cpp (original)
+++ trunk/libs/asio/test/ip/basic_resolver_entry.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -18,7 +18,7 @@
 
 #include "../unit_test.hpp"
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("ip/basic_resolver_entry");
   test->add(BOOST_TEST_CASE(&null_test));

Modified: trunk/libs/asio/test/ip/basic_resolver_iterator.cpp
==============================================================================
--- trunk/libs/asio/test/ip/basic_resolver_iterator.cpp (original)
+++ trunk/libs/asio/test/ip/basic_resolver_iterator.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -18,7 +18,7 @@
 
 #include "../unit_test.hpp"
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("ip/basic_resolver_iterator");
   test->add(BOOST_TEST_CASE(&null_test));

Modified: trunk/libs/asio/test/ip/basic_resolver_query.cpp
==============================================================================
--- trunk/libs/asio/test/ip/basic_resolver_query.cpp (original)
+++ trunk/libs/asio/test/ip/basic_resolver_query.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -18,7 +18,7 @@
 
 #include "../unit_test.hpp"
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("ip/basic_resolver_query");
   test->add(BOOST_TEST_CASE(&null_test));

Modified: trunk/libs/asio/test/ip/host_name.cpp
==============================================================================
--- trunk/libs/asio/test/ip/host_name.cpp (original)
+++ trunk/libs/asio/test/ip/host_name.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -49,7 +49,7 @@
 
 //------------------------------------------------------------------------------
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("ip/host_name");
   test->add(BOOST_TEST_CASE(&ip_host_name_compile::test));

Modified: trunk/libs/asio/test/ip/multicast.cpp
==============================================================================
--- trunk/libs/asio/test/ip/multicast.cpp (original)
+++ trunk/libs/asio/test/ip/multicast.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -340,7 +340,7 @@
 
 //------------------------------------------------------------------------------
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("ip/multicast");
   test->add(BOOST_TEST_CASE(&ip_multicast_compile::test));

Modified: trunk/libs/asio/test/ip/resolver_query_base.cpp
==============================================================================
--- trunk/libs/asio/test/ip/resolver_query_base.cpp (original)
+++ trunk/libs/asio/test/ip/resolver_query_base.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -18,7 +18,7 @@
 
 #include "../unit_test.hpp"
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("ip/resolver_query_base");
   test->add(BOOST_TEST_CASE(&null_test));

Modified: trunk/libs/asio/test/ip/resolver_service.cpp
==============================================================================
--- trunk/libs/asio/test/ip/resolver_service.cpp (original)
+++ trunk/libs/asio/test/ip/resolver_service.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -18,7 +18,7 @@
 
 #include "../unit_test.hpp"
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("ip/resolver_service");
   test->add(BOOST_TEST_CASE(&null_test));

Modified: trunk/libs/asio/test/ip/tcp.cpp
==============================================================================
--- trunk/libs/asio/test/ip/tcp.cpp (original)
+++ trunk/libs/asio/test/ip/tcp.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -371,7 +371,7 @@
 
 //------------------------------------------------------------------------------
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("ip/tcp");
   test->add(BOOST_TEST_CASE(&ip_tcp_compile::test));

Modified: trunk/libs/asio/test/ip/udp.cpp
==============================================================================
--- trunk/libs/asio/test/ip/udp.cpp (original)
+++ trunk/libs/asio/test/ip/udp.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -325,7 +325,7 @@
 
 //------------------------------------------------------------------------------
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("ip/udp");
   test->add(BOOST_TEST_CASE(&ip_udp_socket_compile::test));

Modified: trunk/libs/asio/test/ip/unicast.cpp
==============================================================================
--- trunk/libs/asio/test/ip/unicast.cpp (original)
+++ trunk/libs/asio/test/ip/unicast.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -162,7 +162,7 @@
 
 //------------------------------------------------------------------------------
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("ip/unicast");
   test->add(BOOST_TEST_CASE(&ip_unicast_compile::test));

Modified: trunk/libs/asio/test/ip/v6_only.cpp
==============================================================================
--- trunk/libs/asio/test/ip/v6_only.cpp (original)
+++ trunk/libs/asio/test/ip/v6_only.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -125,7 +125,7 @@
 
 //------------------------------------------------------------------------------
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("ip/v6_only");
   test->add(BOOST_TEST_CASE(&ip_v6_only_compile::test));

Modified: trunk/libs/asio/test/is_read_buffered.cpp
==============================================================================
--- trunk/libs/asio/test/is_read_buffered.cpp (original)
+++ trunk/libs/asio/test/is_read_buffered.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -118,7 +118,7 @@
       boost::asio::buffered_stream<test_stream> >::value);
 }
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("is_read_buffered");
   test->add(BOOST_TEST_CASE(&is_read_buffered_test));

Modified: trunk/libs/asio/test/is_write_buffered.cpp
==============================================================================
--- trunk/libs/asio/test/is_write_buffered.cpp (original)
+++ trunk/libs/asio/test/is_write_buffered.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -118,7 +118,7 @@
       boost::asio::buffered_stream<test_stream> >::value);
 }
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("is_write_buffered");
   test->add(BOOST_TEST_CASE(&is_write_buffered_test));

Modified: trunk/libs/asio/test/local/basic_endpoint.cpp
==============================================================================
--- trunk/libs/asio/test/local/basic_endpoint.cpp (original)
+++ trunk/libs/asio/test/local/basic_endpoint.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -18,7 +18,7 @@
 
 #include "../unit_test.hpp"
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("local/basic_endpoint");
   test->add(BOOST_TEST_CASE(&null_test));

Modified: trunk/libs/asio/test/local/connect_pair.cpp
==============================================================================
--- trunk/libs/asio/test/local/connect_pair.cpp (original)
+++ trunk/libs/asio/test/local/connect_pair.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -68,7 +68,7 @@
 
 //------------------------------------------------------------------------------
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("local/connect_pair");
   test->add(BOOST_TEST_CASE(&local_connect_pair_compile::test));

Modified: trunk/libs/asio/test/local/datagram_protocol.cpp
==============================================================================
--- trunk/libs/asio/test/local/datagram_protocol.cpp (original)
+++ trunk/libs/asio/test/local/datagram_protocol.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -225,7 +225,7 @@
 
 //------------------------------------------------------------------------------
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("local/datagram_protocol");
   test->add(BOOST_TEST_CASE(&local_datagram_protocol_socket_compile::test));

Modified: trunk/libs/asio/test/local/stream_protocol.cpp
==============================================================================
--- trunk/libs/asio/test/local/stream_protocol.cpp (original)
+++ trunk/libs/asio/test/local/stream_protocol.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -202,7 +202,7 @@
 
 //------------------------------------------------------------------------------
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("local/stream_protocol");
   test->add(BOOST_TEST_CASE(&local_stream_protocol_socket_compile::test));

Modified: trunk/libs/asio/test/placeholders.cpp
==============================================================================
--- trunk/libs/asio/test/placeholders.cpp (original)
+++ trunk/libs/asio/test/placeholders.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -18,7 +18,7 @@
 
 #include "unit_test.hpp"
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("placeholders");
   test->add(BOOST_TEST_CASE(&null_test));

Modified: trunk/libs/asio/test/posix/basic_descriptor.cpp
==============================================================================
--- trunk/libs/asio/test/posix/basic_descriptor.cpp (original)
+++ trunk/libs/asio/test/posix/basic_descriptor.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -19,7 +19,7 @@
 #include <boost/asio.hpp>
 #include "../unit_test.hpp"
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("posix/basic_descriptor");
   test->add(BOOST_TEST_CASE(&null_test));

Modified: trunk/libs/asio/test/posix/basic_stream_descriptor.cpp
==============================================================================
--- trunk/libs/asio/test/posix/basic_stream_descriptor.cpp (original)
+++ trunk/libs/asio/test/posix/basic_stream_descriptor.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -19,7 +19,7 @@
 #include <boost/asio.hpp>
 #include "../unit_test.hpp"
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("posix/basic_stream_descriptor");
   test->add(BOOST_TEST_CASE(&null_test));

Modified: trunk/libs/asio/test/posix/descriptor_base.cpp
==============================================================================
--- trunk/libs/asio/test/posix/descriptor_base.cpp (original)
+++ trunk/libs/asio/test/posix/descriptor_base.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -19,7 +19,7 @@
 #include <boost/asio.hpp>
 #include "../unit_test.hpp"
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("posix/descriptor_base");
   test->add(BOOST_TEST_CASE(&null_test));

Modified: trunk/libs/asio/test/posix/stream_descriptor.cpp
==============================================================================
--- trunk/libs/asio/test/posix/stream_descriptor.cpp (original)
+++ trunk/libs/asio/test/posix/stream_descriptor.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -119,7 +119,7 @@
 } // namespace posix_stream_descriptor_compile
 
 //------------------------------------------------------------------------------
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("posix/stream_descriptor");
   test->add(BOOST_TEST_CASE(&posix_stream_descriptor_compile::test));

Modified: trunk/libs/asio/test/posix/stream_descriptor_service.cpp
==============================================================================
--- trunk/libs/asio/test/posix/stream_descriptor_service.cpp (original)
+++ trunk/libs/asio/test/posix/stream_descriptor_service.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -19,7 +19,7 @@
 #include <boost/asio.hpp>
 #include "../unit_test.hpp"
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("posix/stream_descriptor_service");
   test->add(BOOST_TEST_CASE(&null_test));

Modified: trunk/libs/asio/test/read.cpp
==============================================================================
--- trunk/libs/asio/test/read.cpp (original)
+++ trunk/libs/asio/test/read.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -619,7 +619,7 @@
   BOOST_CHECK(s.check(buffers, 50));
 }
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("read");
   test->add(BOOST_TEST_CASE(&test_2_arg_read));

Modified: trunk/libs/asio/test/read_until.cpp
==============================================================================
--- trunk/libs/asio/test/read_until.cpp (original)
+++ trunk/libs/asio/test/read_until.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -421,7 +421,7 @@
   BOOST_CHECK(length == 0);
 }
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("read_until");
   test->add(BOOST_TEST_CASE(&test_char_read_until));

Modified: trunk/libs/asio/test/socket_acceptor_service.cpp
==============================================================================
--- trunk/libs/asio/test/socket_acceptor_service.cpp (original)
+++ trunk/libs/asio/test/socket_acceptor_service.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -18,7 +18,7 @@
 
 #include "unit_test.hpp"
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("socket_acceptor_service");
   test->add(BOOST_TEST_CASE(&null_test));

Modified: trunk/libs/asio/test/socket_base.cpp
==============================================================================
--- trunk/libs/asio/test/socket_base.cpp (original)
+++ trunk/libs/asio/test/socket_base.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -644,7 +644,7 @@
 
 //------------------------------------------------------------------------------
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("socket_base");
   test->add(BOOST_TEST_CASE(&socket_base_compile::test));

Modified: trunk/libs/asio/test/ssl/basic_context.cpp
==============================================================================
--- trunk/libs/asio/test/ssl/basic_context.cpp (original)
+++ trunk/libs/asio/test/ssl/basic_context.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -18,7 +18,7 @@
 
 #include "../unit_test.hpp"
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("ssl/basic_context");
   test->add(BOOST_TEST_CASE(&null_test));

Modified: trunk/libs/asio/test/ssl/context.cpp
==============================================================================
--- trunk/libs/asio/test/ssl/context.cpp (original)
+++ trunk/libs/asio/test/ssl/context.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -18,7 +18,7 @@
 
 #include "../unit_test.hpp"
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("ssl/context");
   test->add(BOOST_TEST_CASE(&null_test));

Modified: trunk/libs/asio/test/ssl/context_base.cpp
==============================================================================
--- trunk/libs/asio/test/ssl/context_base.cpp (original)
+++ trunk/libs/asio/test/ssl/context_base.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -18,7 +18,7 @@
 
 #include "../unit_test.hpp"
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("ssl/context_base");
   test->add(BOOST_TEST_CASE(&null_test));

Modified: trunk/libs/asio/test/ssl/context_service.cpp
==============================================================================
--- trunk/libs/asio/test/ssl/context_service.cpp (original)
+++ trunk/libs/asio/test/ssl/context_service.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -18,7 +18,7 @@
 
 #include "../unit_test.hpp"
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("ssl/context_service");
   test->add(BOOST_TEST_CASE(&null_test));

Modified: trunk/libs/asio/test/ssl/stream.cpp
==============================================================================
--- trunk/libs/asio/test/ssl/stream.cpp (original)
+++ trunk/libs/asio/test/ssl/stream.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -118,7 +118,7 @@
 
 //------------------------------------------------------------------------------
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("ssl/stream");
   test->add(BOOST_TEST_CASE(&ssl_stream_compile::test));

Modified: trunk/libs/asio/test/ssl/stream_base.cpp
==============================================================================
--- trunk/libs/asio/test/ssl/stream_base.cpp (original)
+++ trunk/libs/asio/test/ssl/stream_base.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -18,7 +18,7 @@
 
 #include "../unit_test.hpp"
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("ssl/stream_base");
   test->add(BOOST_TEST_CASE(&null_test));

Modified: trunk/libs/asio/test/ssl/stream_service.cpp
==============================================================================
--- trunk/libs/asio/test/ssl/stream_service.cpp (original)
+++ trunk/libs/asio/test/ssl/stream_service.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -18,7 +18,7 @@
 
 #include "../unit_test.hpp"
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("ssl/stream_service");
   test->add(BOOST_TEST_CASE(&null_test));

Modified: trunk/libs/asio/test/strand.cpp
==============================================================================
--- trunk/libs/asio/test/strand.cpp (original)
+++ trunk/libs/asio/test/strand.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -163,7 +163,7 @@
   BOOST_CHECK(exception_count == 2);
 }
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("strand");
   test->add(BOOST_TEST_CASE(&strand_test));

Modified: trunk/libs/asio/test/stream_socket_service.cpp
==============================================================================
--- trunk/libs/asio/test/stream_socket_service.cpp (original)
+++ trunk/libs/asio/test/stream_socket_service.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -18,7 +18,7 @@
 
 #include "unit_test.hpp"
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("stream_socket_service");
   test->add(BOOST_TEST_CASE(&null_test));

Modified: trunk/libs/asio/test/time_traits.cpp
==============================================================================
--- trunk/libs/asio/test/time_traits.cpp (original)
+++ trunk/libs/asio/test/time_traits.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -18,7 +18,7 @@
 
 #include "unit_test.hpp"
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("time_traits");
   test->add(BOOST_TEST_CASE(&null_test));

Modified: trunk/libs/asio/test/unit_test.hpp
==============================================================================
--- trunk/libs/asio/test/unit_test.hpp (original)
+++ trunk/libs/asio/test/unit_test.hpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -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>

Modified: trunk/libs/asio/test/windows/basic_handle.cpp
==============================================================================
--- trunk/libs/asio/test/windows/basic_handle.cpp (original)
+++ trunk/libs/asio/test/windows/basic_handle.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -19,7 +19,7 @@
 #include <boost/asio.hpp>
 #include "../unit_test.hpp"
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("windows/basic_handle");
   test->add(BOOST_TEST_CASE(&null_test));

Modified: trunk/libs/asio/test/windows/basic_stream_handle.cpp
==============================================================================
--- trunk/libs/asio/test/windows/basic_stream_handle.cpp (original)
+++ trunk/libs/asio/test/windows/basic_stream_handle.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -19,7 +19,7 @@
 #include <boost/asio.hpp>
 #include "../unit_test.hpp"
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("windows/basic_stream_handle");
   test->add(BOOST_TEST_CASE(&null_test));

Modified: trunk/libs/asio/test/windows/stream_handle.cpp
==============================================================================
--- trunk/libs/asio/test/windows/stream_handle.cpp (original)
+++ trunk/libs/asio/test/windows/stream_handle.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -106,7 +106,7 @@
 } // namespace windows_stream_handle_compile
 
 //------------------------------------------------------------------------------
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("windows/stream_handle");
   test->add(BOOST_TEST_CASE(&windows_stream_handle_compile::test));

Modified: trunk/libs/asio/test/windows/stream_handle_service.cpp
==============================================================================
--- trunk/libs/asio/test/windows/stream_handle_service.cpp (original)
+++ trunk/libs/asio/test/windows/stream_handle_service.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -19,7 +19,7 @@
 #include <boost/asio.hpp>
 #include "../unit_test.hpp"
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("windows/stream_handle_service");
   test->add(BOOST_TEST_CASE(&null_test));

Modified: trunk/libs/asio/test/write.cpp
==============================================================================
--- trunk/libs/asio/test/write.cpp (original)
+++ trunk/libs/asio/test/write.cpp 2008-04-22 19:46:15 EDT (Tue, 22 Apr 2008)
@@ -573,7 +573,7 @@
   BOOST_CHECK(s.check(buffers, 50));
 }
 
-test_suite* init_unit_test_suite(int argc, char* argv[])
+test_suite* init_unit_test_suite(int, char*[])
 {
   test_suite* test = BOOST_TEST_SUITE("write");
   test->add(BOOST_TEST_CASE(&test_2_arg_write));


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk