Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r80722 - in trunk: boost/date_time boost/date_time/gregorian boost/date_time/posix_time libs/date_time/src/gregorian
From: marshall_at_[hidden]
Date: 2012-09-27 10:24:16


Author: marshall
Date: 2012-09-27 10:24:15 EDT (Thu, 27 Sep 2012)
New Revision: 80722
URL: http://svn.boost.org/trac/boost/changeset/80722

Log:
Commented out unused parameters in date-time; Refs #7426
Text files modified:
   trunk/boost/date_time/dst_rules.hpp | 2 +-
   trunk/boost/date_time/gregorian/greg_serialize.hpp | 28 ++++++++++++++--------------
   trunk/boost/date_time/posix_time/time_serialize.hpp | 2 +-
   trunk/libs/date_time/src/gregorian/greg_month.cpp | 8 ++++----
   4 files changed, 20 insertions(+), 20 deletions(-)

Modified: trunk/boost/date_time/dst_rules.hpp
==============================================================================
--- trunk/boost/date_time/dst_rules.hpp (original)
+++ trunk/boost/date_time/dst_rules.hpp 2012-09-27 10:24:15 EDT (Thu, 27 Sep 2012)
@@ -371,7 +371,7 @@
         return is_not_in_dst;
       }
 
- static bool is_dst_boundary_day(date_type )
+ static bool is_dst_boundary_day(date_type /*d*/)
       {
         return false;
       }

Modified: trunk/boost/date_time/gregorian/greg_serialize.hpp
==============================================================================
--- trunk/boost/date_time/gregorian/greg_serialize.hpp (original)
+++ trunk/boost/date_time/gregorian/greg_serialize.hpp 2012-09-27 10:24:15 EDT (Thu, 27 Sep 2012)
@@ -88,7 +88,7 @@
 
 //!override needed b/c no default constructor
 template<class Archive>
-inline void load_construct_data(Archive & ar,
+inline void load_construct_data(Archive & /*ar*/,
                                 ::boost::gregorian::date* dp,
                                 const unsigned int /*file_version*/)
 {
@@ -117,7 +117,7 @@
 }
 //!override needed b/c no default constructor
 template<class Archive>
-inline void load_construct_data(Archive & ar, gregorian::date_duration* dd,
+inline void load_construct_data(Archive & /*ar*/, gregorian::date_duration* dd,
                                 const unsigned int /*file_version*/)
 {
   ::new(dd) gregorian::date_duration(gregorian::not_a_date_time);
@@ -143,7 +143,7 @@
 }
 //!override needed b/c no default constructor
 template<class Archive>
-inline void load_construct_data(Archive & ar, gregorian::date_duration::duration_rep* dr,
+inline void load_construct_data(Archive & /*ar*/, gregorian::date_duration::duration_rep* dr,
                                 const unsigned int /*file_version*/)
 {
   ::new(dr) gregorian::date_duration::duration_rep(0);
@@ -179,7 +179,7 @@
 }
 //!override needed b/c no default constructor
 template<class Archive>
-inline void load_construct_data(Archive & ar, gregorian::date_period* dp,
+inline void load_construct_data(Archive & /*ar*/, gregorian::date_period* dp,
                                 const unsigned int /*file_version*/)
 {
   gregorian::date d(gregorian::not_a_date_time);
@@ -207,7 +207,7 @@
 }
 //!override needed b/c no default constructor
 template<class Archive>
-inline void load_construct_data(Archive & ar, gregorian::greg_year* gy,
+inline void load_construct_data(Archive & /*ar*/, gregorian::greg_year* gy,
                                 const unsigned int /*file_version*/)
 {
   ::new(gy) gregorian::greg_year(1900);
@@ -233,7 +233,7 @@
 }
 //!override needed b/c no default constructor
 template<class Archive>
-inline void load_construct_data(Archive & ar, gregorian::greg_month* gm,
+inline void load_construct_data(Archive & /*ar*/, gregorian::greg_month* gm,
                                 const unsigned int /*file_version*/)
 {
   ::new(gm) gregorian::greg_month(1);
@@ -259,7 +259,7 @@
 }
 //!override needed b/c no default constructor
 template<class Archive>
-inline void load_construct_data(Archive & ar, gregorian::greg_day* gd,
+inline void load_construct_data(Archive & /*ar*/, gregorian::greg_day* gd,
                                 const unsigned int /*file_version*/)
 {
   ::new(gd) gregorian::greg_day(1);
@@ -285,7 +285,7 @@
 }
 //!override needed b/c no default constructor
 template<class Archive>
-inline void load_construct_data(Archive & ar, gregorian::greg_weekday* gd,
+inline void load_construct_data(Archive & /*ar*/, gregorian::greg_weekday* gd,
                                 const unsigned int /*file_version*/)
 {
   ::new(gd) gregorian::greg_weekday(1);
@@ -323,7 +323,7 @@
 }
 //!override needed b/c no default constructor
 template<class Archive>
-inline void load_construct_data(Archive & ar, gregorian::partial_date* pd,
+inline void load_construct_data(Archive & /*ar*/, gregorian::partial_date* pd,
                                 const unsigned int /*file_version*/)
 {
   gregorian::greg_month gm(1);
@@ -366,7 +366,7 @@
 }
 //!override needed b/c no default constructor
 template<class Archive>
-inline void load_construct_data(Archive & ar,
+inline void load_construct_data(Archive & /*ar*/,
                                 gregorian::nth_kday_of_month* nkd,
                                 const unsigned int /*file_version*/)
 {
@@ -406,7 +406,7 @@
 }
 //!override needed b/c no default constructor
 template<class Archive>
-inline void load_construct_data(Archive & ar,
+inline void load_construct_data(Archive & /*ar*/,
                                 gregorian::first_kday_of_month* fkd,
                                 const unsigned int /*file_version*/)
 {
@@ -445,7 +445,7 @@
 }
 //!override needed b/c no default constructor
 template<class Archive>
-inline void load_construct_data(Archive & ar,
+inline void load_construct_data(Archive & /*ar*/,
                                 gregorian::last_kday_of_month* lkd,
                                 const unsigned int /*file_version*/)
 {
@@ -474,7 +474,7 @@
 }
 //!override needed b/c no default constructor
 template<class Archive>
-inline void load_construct_data(Archive & ar,
+inline void load_construct_data(Archive & /*ar*/,
                                 gregorian::first_kday_before* fkdb,
                                 const unsigned int /*file_version*/)
 {
@@ -503,7 +503,7 @@
 }
 //!override needed b/c no default constructor
 template<class Archive>
-inline void load_construct_data(Archive & ar,
+inline void load_construct_data(Archive & /*ar*/,
                                 gregorian::first_kday_after* fkda,
                                 const unsigned int /*file_version*/)
 {

Modified: trunk/boost/date_time/posix_time/time_serialize.hpp
==============================================================================
--- trunk/boost/date_time/posix_time/time_serialize.hpp (original)
+++ trunk/boost/date_time/posix_time/time_serialize.hpp 2012-09-27 10:24:15 EDT (Thu, 27 Sep 2012)
@@ -184,7 +184,7 @@
 
 //!override needed b/c no default constructor
 template<class Archive>
-inline void load_construct_data(Archive & ar,
+inline void load_construct_data(Archive & /*ar*/,
                                 boost::posix_time::time_period* tp,
                                 const unsigned int /*file_version*/)
 {

Modified: trunk/libs/date_time/src/gregorian/greg_month.cpp
==============================================================================
--- trunk/libs/date_time/src/gregorian/greg_month.cpp (original)
+++ trunk/libs/date_time/src/gregorian/greg_month.cpp 2012-09-27 10:24:15 EDT (Thu, 27 Sep 2012)
@@ -108,7 +108,7 @@
    */
   BOOST_DATE_TIME_DECL
   boost::date_time::all_date_names_put<greg_facet_config, char>*
- create_facet_def(char type)
+ create_facet_def(char /*type*/)
   {
     typedef
       boost::date_time::all_date_names_put<greg_facet_config, char> facet_def;
@@ -121,7 +121,7 @@
   }
   
   //! generates a locale with the set of gregorian name-strings of type char*
- BOOST_DATE_TIME_DECL std::locale generate_locale(std::locale& loc, char type){
+ BOOST_DATE_TIME_DECL std::locale generate_locale(std::locale& loc, char /*type*/){
     typedef boost::date_time::all_date_names_put<greg_facet_config, char> facet_def;
     return std::locale(loc, new facet_def(short_month_names,
                                           long_month_names,
@@ -139,7 +139,7 @@
    */
   BOOST_DATE_TIME_DECL
   boost::date_time::all_date_names_put<greg_facet_config, wchar_t>*
- create_facet_def(wchar_t type)
+ create_facet_def(wchar_t /*type*/)
   {
     typedef
       boost::date_time::all_date_names_put<greg_facet_config,wchar_t> facet_def;
@@ -152,7 +152,7 @@
   }
 
   //! generates a locale with the set of gregorian name-strings of type wchar_t*
- BOOST_DATE_TIME_DECL std::locale generate_locale(std::locale& loc, wchar_t type){
+ BOOST_DATE_TIME_DECL std::locale generate_locale(std::locale& loc, wchar_t /*type*/){
     typedef boost::date_time::all_date_names_put<greg_facet_config, wchar_t> facet_def;
     return std::locale(loc, new facet_def(w_short_month_names,
                                           w_long_month_names,


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