Boost logo

Boost :

From: Rodolfo Schulz de Lima (rodolfo_at_[hidden])
Date: 2004-08-26 18:38:01


Hi, here's a patch to shut up the gcc-3.4.1 compiler with all
warnings enable (-Wextra -Wall). That'll be nice if this was put
in the main package. My projects usually have -Werror and those
ones below doesn't help. It's all about harmless unused function
parameters. I must point that I didn't check other libraries, just
the ones I usually use.

Thanks,
rod

diff -ur boost/date_time/date_names_put.hpp /usr/include/boost-1_32/boost/date_time/date_names_put.hpp
--- boost/date_time/date_names_put.hpp 2004-07-17 19:20:18.000000000 -0300
+++ /usr/include/boost-1_32/boost/date_time/date_names_put.hpp 2004-08-23 17:35:05.000000000 -0300
@@ -142,10 +142,10 @@
           default: {} //quiet compilers that want all cases covered here (eg: gcc 3.1)
         }
       }
- virtual void do_put_weekday_short(iter_type& oitr, weekday_enum wd) const
+ virtual void do_put_weekday_short(iter_type&, weekday_enum) const
       {
       }
- virtual void do_put_weekday_long(iter_type& oitr, weekday_enum wd) const
+ virtual void do_put_weekday_long(iter_type&, weekday_enum) const
       {
       }
       virtual bool do_has_date_sep_chars() const
diff -ur boost/date_time/gregorian/greg_month.hpp /usr/include/boost-1_32/boost/date_time/gregorian/greg_month.hpp
--- boost/date_time/gregorian/greg_month.hpp 2004-07-18 15:36:16.000000000 -0300
+++ /usr/include/boost-1_32/boost/date_time/gregorian/greg_month.hpp 2004-08-23 16:29:25.000000000 -0300
@@ -78,20 +78,20 @@
 
     /* parameterized as_*_string functions are intended to be called
      * from a template function: "... as_short_string(charT c='\0');" */
- const char* as_short_string(char c) const
+ const char* as_short_string(char) const
     {
       return as_short_string();
     }
- const char* as_long_string(char c) const
+ const char* as_long_string(char) const
     {
       return as_long_string();
     }
 #ifndef BOOST_NO_STD_WSTRING
- const wchar_t* as_short_string(wchar_t c) const
+ const wchar_t* as_short_string(wchar_t) const
     {
       return as_short_wstring();
     }
- const wchar_t* as_long_string(wchar_t c) const
+ const wchar_t* as_long_string(wchar_t) const
     {
       return as_long_wstring();
     }
diff -ur boost/token_functions.hpp /usr/include/boost-1_32/boost/token_functions.hpp
--- boost/token_functions.hpp 2004-08-19 12:23:46.000000000 -0300
+++ /usr/include/boost-1_32/boost/token_functions.hpp 2004-08-23 16:34:48.000000000 -0300
@@ -212,7 +212,7 @@
     }
 
     template<class Token, class Value>
- static void plus_equal(Token &t, const Value &v) {
+ static void plus_equal(Token &, const Value &) {
     
   }
 
@@ -220,7 +220,7 @@
     // the clear.
     //
     template<class Token>
- static void clear(Token &t) {
+ static void clear(Token &) {
 
     }
   };


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk