Boost logo

Boost-Commit :

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


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

Log:
change to suppress warnings regarding unused arguments
Text files modified:
   trunk/boost/serialization/collection_traits.hpp | 15 +++++++++++----
   trunk/boost/serialization/collections_load_imp.hpp | 2 +-
   trunk/boost/serialization/deque.hpp | 2 +-
   trunk/boost/serialization/export.hpp | 2 +-
   trunk/boost/serialization/extended_type_info.hpp | 8 ++++----
   trunk/boost/serialization/valarray.hpp | 4 ++--
   trunk/boost/serialization/variant.hpp | 10 +++++-----
   7 files changed, 25 insertions(+), 18 deletions(-)

Modified: trunk/boost/serialization/collection_traits.hpp
==============================================================================
--- trunk/boost/serialization/collection_traits.hpp (original)
+++ trunk/boost/serialization/collection_traits.hpp 2008-06-09 00:01:54 EDT (Mon, 09 Jun 2008)
@@ -51,10 +51,17 @@
 // i.e. that its not a synonym for (unsigned) long
 // if there is no 64 bit int or if its the same as a long
 // we shouldn't define separate functions for int64 data types.
-#if defined(BOOST_NO_INT64_T) \
- || (ULONG_MAX != 0xffffffff && ULONG_MAX == 18446744073709551615u) // 2**64 - 1
-# define BOOST_NO_INTRINSIC_INT64_T
-#endif
+#if defined(BOOST_NO_INT64_T)
+ #define BOOST_NO_INTRINSIC_INT64_T
+#else
+ #if defined(ULONG_MAX)
+ #if(ULONG_MAX != 0xffffffff && ULONG_MAX == 18446744073709551615u) // 2**64 - 1
+ #define BOOST_NO_INTRINSIC_INT64_T
+ #endif
+ #else
+ #define BOOST_NO_INTRINSIC_INT64_T
+ #endif
+#endif
 
 #if !defined(BOOST_NO_INTRINSIC_INT64_T)
     #define BOOST_SERIALIZATION_COLLECTION_TRAITS_HELPER_INT64(C) \

Modified: trunk/boost/serialization/collections_load_imp.hpp
==============================================================================
--- trunk/boost/serialization/collections_load_imp.hpp (original)
+++ trunk/boost/serialization/collections_load_imp.hpp 2008-06-09 00:01:54 EDT (Mon, 09 Jun 2008)
@@ -67,7 +67,7 @@
         const unsigned int v
     ){
         typedef BOOST_DEDUCED_TYPENAME Container::value_type type;
- detail::stack_construct<Archive, type>t(ar, v);
+ detail::stack_construct<Archive, type> t(ar, v);
         // borland fails silently w/o full namespace
         ar >> boost::serialization::make_nvp("item", t.reference());
         std::pair<BOOST_DEDUCED_TYPENAME Container::const_iterator, bool> result =

Modified: trunk/boost/serialization/deque.hpp
==============================================================================
--- trunk/boost/serialization/deque.hpp (original)
+++ trunk/boost/serialization/deque.hpp 2008-06-09 00:01:54 EDT (Mon, 09 Jun 2008)
@@ -42,7 +42,7 @@
 inline void load(
     Archive & ar,
     std::deque<U, Allocator> &t,
- const unsigned int file_version
+ const unsigned int /*file_version*/
 ){
     boost::serialization::stl::load_collection<
         Archive,

Modified: trunk/boost/serialization/export.hpp
==============================================================================
--- trunk/boost/serialization/export.hpp (original)
+++ trunk/boost/serialization/export.hpp 2008-06-09 00:01:54 EDT (Mon, 09 Jun 2008)
@@ -122,7 +122,7 @@
         instantiate_ptr_serialization((T*)0, 0, adl_tag());
         return *this;
     }
- const guid_initializer & export_guid(char const* key, mpl::true_){
+ const guid_initializer & export_guid(char const* /*key*/, mpl::true_){
         return *this;
     }
     const guid_initializer & export_guid(char const* key){

Modified: trunk/boost/serialization/extended_type_info.hpp
==============================================================================
--- trunk/boost/serialization/extended_type_info.hpp (original)
+++ trunk/boost/serialization/extended_type_info.hpp 2008-06-09 00:01:54 EDT (Mon, 09 Jun 2008)
@@ -42,12 +42,12 @@
     // included in implementation of sets and maps.
     const unsigned int m_type_info_key;
     virtual bool
- is_less_than(const extended_type_info &rhs) const {
+ is_less_than(const extended_type_info & /*rhs*/) const {
         assert(false);
         return false;
     };
     virtual bool
- is_equal(const extended_type_info &rhs) const {
+ is_equal(const extended_type_info & /*rhs*/) const {
         assert(false);
         return false;
     };
@@ -75,11 +75,11 @@
     }
     static const extended_type_info * find(const char *key);
     // for plugins
- virtual void * construct(unsigned int count = 0, ...) const {
+ virtual void * construct(unsigned int /*count*/ = 0, ...) const {
         assert(false); // must be implemented if used
         return NULL;
     };
- virtual void destroy(void const * const p) const {
+ virtual void destroy(void const * const /*p*/) const {
         assert(false); // must be implemented if used
     }
 };

Modified: trunk/boost/serialization/valarray.hpp
==============================================================================
--- trunk/boost/serialization/valarray.hpp (original)
+++ trunk/boost/serialization/valarray.hpp 2008-06-09 00:01:54 EDT (Mon, 09 Jun 2008)
@@ -37,7 +37,7 @@
 // valarray<T>
 
 template<class Archive, class U>
-void save( Archive & ar, const STD::valarray<U> &t, const unsigned int file_version )
+void save( Archive & ar, const STD::valarray<U> &t, const unsigned int /*file_version*/ )
 {
   const collection_size_type count(t.size());
   ar << BOOST_SERIALIZATION_NVP(count);
@@ -47,7 +47,7 @@
 
 
 template<class Archive, class U>
-void load( Archive & ar, STD::valarray<U> &t, const unsigned int file_version )
+void load( Archive & ar, STD::valarray<U> &t, const unsigned int /*file_version*/ )
 {
   collection_size_type count;
   ar >> BOOST_SERIALIZATION_NVP(count);

Modified: trunk/boost/serialization/variant.hpp
==============================================================================
--- trunk/boost/serialization/variant.hpp (original)
+++ trunk/boost/serialization/variant.hpp 2008-06-09 00:01:54 EDT (Mon, 09 Jun 2008)
@@ -63,7 +63,7 @@
 void save(
     Archive & ar,
     boost::variant<BOOST_VARIANT_ENUM_PARAMS(T)> const & v,
- unsigned int version
+ unsigned int /*version*/
 ){
     int which = v.which();
     ar << BOOST_SERIALIZATION_NVP(which);
@@ -78,10 +78,10 @@
     struct load_null {
         template<class Archive, class V>
         static void invoke(
- Archive & ar,
- int which,
- V & v,
- unsigned int version
+ Archive & /*ar*/,
+ int /*which*/,
+ V & /*v*/,
+ unsigned int /*version*/
         ){}
     };
 


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