Boost logo

Boost-Commit :

From: ramey_at_[hidden]
Date: 2008-06-09 00:01:07


Author: ramey
Date: 2008-06-09 00:01:07 EDT (Mon, 09 Jun 2008)
New Revision: 46264
URL: http://svn.boost.org/trac/boost/changeset/46264

Log:
change to suppress warnings regarding unused arguments
Text files modified:
   trunk/boost/archive/array/iarchive.hpp | 2 +-
   trunk/boost/archive/detail/common_iarchive.hpp | 4 ++--
   trunk/boost/archive/detail/common_oarchive.hpp | 4 ++--
   trunk/boost/archive/xml_archive_exception.hpp | 1 +
   4 files changed, 6 insertions(+), 5 deletions(-)

Modified: trunk/boost/archive/array/iarchive.hpp
==============================================================================
--- trunk/boost/archive/array/iarchive.hpp (original)
+++ trunk/boost/archive/array/iarchive.hpp 2008-06-09 00:01:07 EDT (Mon, 09 Jun 2008)
@@ -66,7 +66,7 @@
   // the optimized implementation for vector uses serialization::array
   template<class ValueType, class Allocator>
   void load_optimized(
- std::vector<ValueType, Allocator> &t, unsigned int version, mpl::true_)
+ std::vector<ValueType, Allocator> &t, unsigned int /*version*/, mpl::true_)
   {
     t.clear();
     // retrieve number of elements

Modified: trunk/boost/archive/detail/common_iarchive.hpp
==============================================================================
--- trunk/boost/archive/detail/common_iarchive.hpp (original)
+++ trunk/boost/archive/detail/common_iarchive.hpp 2008-06-09 00:01:07 EDT (Mon, 09 Jun 2008)
@@ -60,8 +60,8 @@
     }
     // default implementations of functions which emit start/end tags for
     // archive types that require them.
- void load_start(const char *name){}
- void load_end(const char *name){}
+ void load_start(const char * /*name*/){}
+ void load_end(const char * /*name*/){}
     // default archive initialization
     common_iarchive(unsigned int flags = 0) :
         basic_iarchive(flags),

Modified: trunk/boost/archive/detail/common_oarchive.hpp
==============================================================================
--- trunk/boost/archive/detail/common_oarchive.hpp (original)
+++ trunk/boost/archive/detail/common_oarchive.hpp 2008-06-09 00:01:07 EDT (Mon, 09 Jun 2008)
@@ -63,8 +63,8 @@
     void save_override(T & t, BOOST_PFTO int){
         archive::save(* this->This(), t);
     }
- void save_start(const char *name){}
- void save_end(const char *name){}
+ void save_start(const char * /*name*/){}
+ void save_end(const char * /*name*/){}
     common_oarchive(unsigned int flags = 0) :
         basic_oarchive(flags),
         interface_oarchive<Archive>()

Modified: trunk/boost/archive/xml_archive_exception.hpp
==============================================================================
--- trunk/boost/archive/xml_archive_exception.hpp (original)
+++ trunk/boost/archive/xml_archive_exception.hpp 2008-06-09 00:01:07 EDT (Mon, 09 Jun 2008)
@@ -36,6 +36,7 @@
         xml_archive_tag_mismatch,
         xml_archive_tag_name_error
     } exception_code;
+ exception_code code;
     xml_archive_exception(exception_code c)
     {}
     virtual const char *what( ) const throw( )


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