diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-06-26 09:19:54 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-06-26 16:29:12 +0100 |
commit | 080bf84bffda29d10e46a9a8a37ec267f42e0eba (patch) | |
tree | e9e1d6e48c10bae9cc67488934ba432dd59ec9dc | |
parent | f97009d79fab5a6264ffb2f59d40b9e3d83ba41d (diff) |
clang: WaE: -Wunused-parameter
Change-Id: Ibd62d74d1244a29d7554837c3b39e76b87098b97
-rw-r--r-- | external/boost/UnpackedTarball_boost.mk | 2 | ||||
-rw-r--r-- | external/boost/boost.spirit.Wunused-parameter.warnings.patch | 47 |
2 files changed, 49 insertions, 0 deletions
diff --git a/external/boost/UnpackedTarball_boost.mk b/external/boost/UnpackedTarball_boost.mk index ffaf0b6abd75..f22f4530e0a2 100644 --- a/external/boost/UnpackedTarball_boost.mk +++ b/external/boost/UnpackedTarball_boost.mk @@ -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 diff --git a/external/boost/boost.spirit.Wunused-parameter.warnings.patch b/external/boost/boost.spirit.Wunused-parameter.warnings.patch new file mode 100644 index 000000000000..3487394694fd --- /dev/null +++ b/external/boost/boost.spirit.Wunused-parameter.warnings.patch @@ -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"); + } |