Opened 14 years ago

Closed 12 years ago

#2707 closed Bugs (fixed)

Spurious GCC warnings

Reported by: John Maddock Owned by: Joel de Guzman
Milestone: Boost 1.38.0 Component: fusion
Version: Boost 1.37.0 Severity: Cosmetic
Keywords: Cc: manuel.holtgrewe@…

Description

Boost.Math is getting an annoying warning from Fusion, for example:

#include <boost/math/special_functions/gamma.hpp>

leads to:

In file included from ./boost/math/special_functions/erf.hpp:1078,

from ./boost/math/special_functions/gamma.hpp:1472, from ../../trunk/t.cpp:2:

./boost/fusion/container/vector/vector10.hpp: In instantiation of 'boost::fusion ::vector0::vector0(const Sequence&) [with Sequence = boost::fusion::tuple<boost: :fusion::void_, boost::fusion::void_, boost::fusion::void_, boost::fusion::void_ , boost::fusion::void_, boost::fusion::void_, boost::fusion::void_, boost::fusio n::void_, boost::fusion::void_, boost::fusion::void_>]': ./boost/fusion/container/vector/vector.hpp:62: instantiated from 'boost::fusio n::vector<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>::vector(const Sequence&) [with

Sequence = boost::fusion::tuple<boost::fusion::void_, boost::fusion::void_, boo

st::fusion::void_, boost::fusion::void_, boost::fusion::void_, boost::fusion::vo id_, boost::fusion::void_, boost::fusion::void_, boost::fusion::void_, boost::fu sion::void_>, T0 = boost::fusion::void_, T1 = boost::fusion::void_, T2 = boost:: fusion::void_, T3 = boost::fusion::void_, T4 = boost::fusion::void_, T5 = boost: :fusion::void_, T6 = boost::fusion::void_, T7 = boost::fusion::void_, T8 = boost ::fusion::void_, T9 = boost::fusion::void_]' ./boost/fusion/tuple/tuple.hpp:34: instantiated from 'boost::fusion::tuple<T0,

T1, T2, T3, T4, T5, T6, T7, T8, T9>::tuple(const boost::fusion::tuple<T0, T1, T

2, T3, T4, T5, T6, T7, T8, T9>&) [with T0 = boost::fusion::void_, T1 = boost::fu sion::void_, T2 = boost::fusion::void_, T3 = boost::fusion::void_, T4 = boost::f usion::void_, T5 = boost::fusion::void_, T6 = boost::fusion::void_, T7 = boost:: fusion::void_, T8 = boost::fusion::void_, T9 = boost::fusion::void_]' ./boost/fusion/tuple/make_tuple.hpp:22: instantiated from here ./boost/fusion/container/vector/vector10.hpp:54: warning: unused parameter 'seq'

When built with g++ 4.3 and -Wall -Wextra.

Cheers, John.

Change History (2)

comment:1 by manuel.holtgrewe@…, 13 years ago

Cc: manuel.holtgrewe@… added

Simply replacing the line

        vector0(Sequence const& seq)

by

        vector0(Sequence const&)

would fix this.

comment:2 by Steven Watanabe, 12 years ago

Resolution: fixed
Status: newclosed

Fixed in [62854].

Note: See TracTickets for help on using tickets.