clang: WaE: -Wunused-parameter

Change-Id: Ibd62d74d1244a29d7554837c3b39e76b87098b97
This commit is contained in:
Caolán McNamara 2014-06-26 09:19:54 +01:00
parent f97009d79f
commit 080bf84bff
2 changed files with 49 additions and 0 deletions

View File

@ -71,6 +71,8 @@ boost_patches += boost.random.Wunused-local-typedefs.warnings.patch
boost_patches += boost.spirit.Wshadow.warnings.patch
# https://svn.boost.org/trac/boost/ticket/9901
boost_patches += boost.spirit.Wunused-local-typedefs.warnings.patch
# to-do: submit upstream
boost_patches += boost.spirit.Wunused-parameter.warnings.patch
# fixed upstream
boost_patches += boost.unordered.Wshadow.warnings.patch
# https://svn.boost.org/trac/boost/ticket/9902

View File

@ -0,0 +1,47 @@
--- a/b/boost/boost/spirit/home/classic/debug/impl/parser_names.ipp
+++ a/b/boost/boost/spirit/home/classic/debug/impl/parser_names.ipp
@@ -95,7 +95,7 @@
// from numerics.hpp
template <typename T, int Radix, unsigned MinDigits, int MaxDigits>
inline std::string
- parser_name(uint_parser<T, Radix, MinDigits, MaxDigits> const& p)
+ parser_name(uint_parser<T, Radix, MinDigits, MaxDigits> const&)
{
BOOST_SPIRIT_SSTREAM stream;
stream << Radix << ", " << MinDigits << ", " << MaxDigits;
@@ -106,7 +106,7 @@
template <typename T, int Radix, unsigned MinDigits, int MaxDigits>
inline std::string
- parser_name(int_parser<T, Radix, MinDigits, MaxDigits> const& p)
+ parser_name(int_parser<T, Radix, MinDigits, MaxDigits> const&)
{
BOOST_SPIRIT_SSTREAM stream;
stream << Radix << ", " << MinDigits << ", " << MaxDigits;
@@ -117,7 +117,7 @@
template <typename T, typename RealPoliciesT>
inline std::string
- parser_name(real_parser<T, RealPoliciesT> const& p)
+ parser_name(real_parser<T, RealPoliciesT> const&)
{
return std::string("real_parser");
}
@@ -218,7 +218,7 @@
// from parser.hpp
template <typename DerivedT>
inline std::string
- parser_name(parser<DerivedT> const& p)
+ parser_name(parser<DerivedT> const&)
{
return std::string("parser");
}
@@ -227,7 +227,7 @@
// from primitives.hpp
template <typename DerivedT>
inline std::string
- parser_name(char_parser<DerivedT> const &p)
+ parser_name(char_parser<DerivedT> const &)
{
return std::string("char_parser");
}