Boost logo

Boost-Commit :

From: eric_at_[hidden]
Date: 2007-10-08 13:13:29


Author: eric_niebler
Date: 2007-10-08 13:13:29 EDT (Mon, 08 Oct 2007)
New Revision: 39794
URL: http://svn.boost.org/trac/boost/changeset/39794

Log:
clean up gcc unused parameter warnings
Text files modified:
   trunk/boost/xpressive/detail/core/matcher/action_matcher.hpp | 4 ++--
   trunk/boost/xpressive/detail/static/transforms/as_action.hpp | 6 +++---
   trunk/boost/xpressive/detail/static/transforms/as_independent.hpp | 2 +-
   3 files changed, 6 insertions(+), 6 deletions(-)

Modified: trunk/boost/xpressive/detail/core/matcher/action_matcher.hpp
==============================================================================
--- trunk/boost/xpressive/detail/core/matcher/action_matcher.hpp (original)
+++ trunk/boost/xpressive/detail/core/matcher/action_matcher.hpp 2007-10-08 13:13:29 EDT (Mon, 08 Oct 2007)
@@ -308,7 +308,7 @@
 
         template<typename Expr, typename State, typename Visitor>
         static typename apply<Expr, State, Visitor>::type
- call(Expr const &expr, State const &state, Visitor &)
+ call(Expr const &, State const &state, Visitor &)
         {
             typedef typename Expr::proto_arg0::matcher_type::value_type::second_type attr_type;
             int slot = typename Expr::proto_arg0::nbr_type();
@@ -361,7 +361,7 @@
 
         template<typename Expr, typename State, typename Visitor>
         static typename apply<Expr, State, Visitor>::type
- call(Expr const &expr, State const &state, Visitor &)
+ call(Expr const &expr, State const &, Visitor &)
         {
             return apply<Expr, State, Visitor>::type::make(proto::arg(expr));
         }

Modified: trunk/boost/xpressive/detail/static/transforms/as_action.hpp
==============================================================================
--- trunk/boost/xpressive/detail/static/transforms/as_action.hpp (original)
+++ trunk/boost/xpressive/detail/static/transforms/as_action.hpp 2007-10-08 13:13:29 EDT (Mon, 08 Oct 2007)
@@ -64,7 +64,7 @@
 
         template<typename Expr, typename State, typename Visitor>
         static typename apply<Expr, State, Visitor>::type
- call(Expr const &expr, State const &state, Visitor &visitor)
+ call(Expr const &expr, State const &, Visitor &)
         {
             return proto::as_expr(proto::arg(expr));
         }
@@ -103,7 +103,7 @@
 
         template<typename Expr, typename State, typename Visitor>
         static typename apply<Expr, State, Visitor>::type
- call(Expr const &expr, State const &state, Visitor &visitor)
+ call(Expr const &, State const &, Visitor &)
         {
             typename apply<Expr, State, Visitor>::type that = {{}};
             return that;
@@ -184,7 +184,7 @@
 
         template<typename Expr, typename State, typename Visitor>
         static typename apply<Expr, State, Visitor>::type
- call(Expr const &expr, State const &state, Visitor &visitor)
+ call(Expr const &expr, State const &, Visitor &visitor)
         {
             return typename apply<Expr, State, Visitor>::type(
                 Expr::proto_arg0::proto_base_expr::proto_arg0::nbr_type::value

Modified: trunk/boost/xpressive/detail/static/transforms/as_independent.hpp
==============================================================================
--- trunk/boost/xpressive/detail/static/transforms/as_independent.hpp (original)
+++ trunk/boost/xpressive/detail/static/transforms/as_independent.hpp 2007-10-08 13:13:29 EDT (Mon, 08 Oct 2007)
@@ -38,7 +38,7 @@
 
         template<typename Expr, typename State, typename Visitor>
         static typename apply<Expr, State, Visitor>::type
- call(Expr const &expr, State const &state, Visitor &visitor)
+ call(Expr const &expr, State const &, Visitor &visitor)
         {
             return typename apply<Expr, State, Visitor>::type(
                 Grammar::call(expr, true_xpression(), visitor)


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