Boost logo

Boost-Commit :

From: chris_at_[hidden]
Date: 2007-08-20 10:21:47


Author: chris_kohlhoff
Date: 2007-08-20 10:21:47 EDT (Mon, 20 Aug 2007)
New Revision: 38790
URL: http://svn.boost.org/trac/boost/changeset/38790

Log:
Clean up gcc warnings.
Text files modified:
   trunk/libs/asio/example/allocation/server.cpp | 2 +-
   trunk/libs/asio/example/socks4/socks4.hpp | 28 ++++++++++++++++------------
   2 files changed, 17 insertions(+), 13 deletions(-)

Modified: trunk/libs/asio/example/allocation/server.cpp
==============================================================================
--- trunk/libs/asio/example/allocation/server.cpp (original)
+++ trunk/libs/asio/example/allocation/server.cpp 2007-08-20 10:21:47 EDT (Mon, 20 Aug 2007)
@@ -97,7 +97,7 @@
     return this_handler->allocator_.allocate(size);
   }
 
- friend void asio_handler_deallocate(void* pointer, std::size_t size,
+ friend void asio_handler_deallocate(void* pointer, std::size_t /*size*/,
       custom_alloc_handler<Handler>* this_handler)
   {
     this_handler->allocator_.deallocate(pointer);

Modified: trunk/libs/asio/example/socks4/socks4.hpp
==============================================================================
--- trunk/libs/asio/example/socks4/socks4.hpp (original)
+++ trunk/libs/asio/example/socks4/socks4.hpp 2007-08-20 10:21:47 EDT (Mon, 20 Aug 2007)
@@ -55,13 +55,15 @@
   {
     boost::array<boost::asio::const_buffer, 7> bufs =
     {
- boost::asio::buffer(&version_, 1),
- boost::asio::buffer(&command_, 1),
- boost::asio::buffer(&port_high_byte_, 1),
- boost::asio::buffer(&port_low_byte_, 1),
- boost::asio::buffer(address_),
- boost::asio::buffer(user_id_),
- boost::asio::buffer(&null_byte_, 1)
+ {
+ boost::asio::buffer(&version_, 1),
+ boost::asio::buffer(&command_, 1),
+ boost::asio::buffer(&port_high_byte_, 1),
+ boost::asio::buffer(&port_low_byte_, 1),
+ boost::asio::buffer(address_),
+ boost::asio::buffer(user_id_),
+ boost::asio::buffer(&null_byte_, 1)
+ }
     };
     return bufs;
   }
@@ -97,11 +99,13 @@
   {
     boost::array<boost::asio::mutable_buffer, 5> bufs =
     {
- boost::asio::buffer(&null_byte_, 1),
- boost::asio::buffer(&status_, 1),
- boost::asio::buffer(&port_high_byte_, 1),
- boost::asio::buffer(&port_low_byte_, 1),
- boost::asio::buffer(address_)
+ {
+ boost::asio::buffer(&null_byte_, 1),
+ boost::asio::buffer(&status_, 1),
+ boost::asio::buffer(&port_high_byte_, 1),
+ boost::asio::buffer(&port_low_byte_, 1),
+ boost::asio::buffer(address_)
+ }
     };
     return bufs;
   }


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