Author: ericwf Date: Sun Oct 23 13:52:58 2016 New Revision: 284942 URL: http://llvm.org/viewvc/llvm-project?rev=284942&view=rev Log: Fix unreferenced parameters. Patch from s...@microsoft.com
Modified: libcxx/trunk/test/std/utilities/optional/optional.object/optional.object.ctor/in_place_t.pass.cpp libcxx/trunk/test/std/utilities/optional/optional.object/optional.object.swap/swap.pass.cpp libcxx/trunk/test/std/utilities/optional/optional.specalg/swap.pass.cpp libcxx/trunk/test/support/archetypes.hpp Modified: libcxx/trunk/test/std/utilities/optional/optional.object/optional.object.ctor/in_place_t.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/optional/optional.object/optional.object.ctor/in_place_t.pass.cpp?rev=284942&r1=284941&r2=284942&view=diff ============================================================================== --- libcxx/trunk/test/std/utilities/optional/optional.object/optional.object.ctor/in_place_t.pass.cpp (original) +++ libcxx/trunk/test/std/utilities/optional/optional.object/optional.object.ctor/in_place_t.pass.cpp Sun Oct 23 13:52:58 2016 @@ -55,7 +55,7 @@ public: class Z { public: - Z(int i) {TEST_THROW(6);} + Z(int) {TEST_THROW(6);} }; Modified: libcxx/trunk/test/std/utilities/optional/optional.object/optional.object.swap/swap.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/optional/optional.object/optional.object.swap/swap.pass.cpp?rev=284942&r1=284941&r2=284942&view=diff ============================================================================== --- libcxx/trunk/test/std/utilities/optional/optional.object/optional.object.swap/swap.pass.cpp (original) +++ libcxx/trunk/test/std/utilities/optional/optional.object/optional.object.swap/swap.pass.cpp Sun Oct 23 13:52:58 2016 @@ -61,7 +61,7 @@ public: Z(Z&&) {TEST_THROW(7);} friend constexpr bool operator==(const Z& x, const Z& y) {return x.i_ == y.i_;} - friend void swap(Z& x, Z& y) {TEST_THROW(6);} + friend void swap(Z&, Z&) {TEST_THROW(6);} }; Modified: libcxx/trunk/test/std/utilities/optional/optional.specalg/swap.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/optional/optional.specalg/swap.pass.cpp?rev=284942&r1=284941&r2=284942&view=diff ============================================================================== --- libcxx/trunk/test/std/utilities/optional/optional.specalg/swap.pass.cpp (original) +++ libcxx/trunk/test/std/utilities/optional/optional.specalg/swap.pass.cpp Sun Oct 23 13:52:58 2016 @@ -60,7 +60,7 @@ public: Z(Z&&) { TEST_THROW(7);} friend constexpr bool operator==(const Z& x, const Z& y) {return x.i_ == y.i_;} - friend void swap(Z& x, Z& y) { TEST_THROW(6);} + friend void swap(Z&, Z&) { TEST_THROW(6);} }; Modified: libcxx/trunk/test/support/archetypes.hpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/support/archetypes.hpp?rev=284942&r1=284941&r2=284942&view=diff ============================================================================== --- libcxx/trunk/test/support/archetypes.hpp (original) +++ libcxx/trunk/test/support/archetypes.hpp Sun Oct 23 13:52:58 2016 @@ -60,11 +60,11 @@ struct TestBase { ++alive; ++constructed; ++value_constructed; } template <bool Dummy = true, typename std::enable_if<Dummy && Explicit, bool>::type = true> - explicit TestBase(int x, int y) noexcept : value(y) { + explicit TestBase(int, int y) noexcept : value(y) { ++alive; ++constructed; ++value_constructed; } template <bool Dummy = true, typename std::enable_if<Dummy && !Explicit, bool>::type = true> - TestBase(int x, int y) noexcept : value(y) { + TestBase(int, int y) noexcept : value(y) { ++alive; ++constructed; ++value_constructed; } template <bool Dummy = true, typename std::enable_if<Dummy && Explicit, bool>::type = true> @@ -131,9 +131,9 @@ struct ValueBase { template <bool Dummy = true, typename std::enable_if<Dummy && !Explicit, bool>::type = true> constexpr ValueBase(int x) : value(x) {} template <bool Dummy = true, typename std::enable_if<Dummy && Explicit, bool>::type = true> - explicit constexpr ValueBase(int x, int y) : value(y) {} + explicit constexpr ValueBase(int, int y) : value(y) {} template <bool Dummy = true, typename std::enable_if<Dummy && !Explicit, bool>::type = true> - constexpr ValueBase(int x, int y) : value(y) {} + constexpr ValueBase(int, int y) : value(y) {} template <bool Dummy = true, typename std::enable_if<Dummy && Explicit, bool>::type = true> explicit constexpr ValueBase(std::initializer_list<int>& il, int y = 0) : value(il.size()) {} template <bool Dummy = true, typename std::enable_if<Dummy && !Explicit, bool>::type = true> @@ -189,9 +189,9 @@ struct TrivialValueBase { template <bool Dummy = true, typename std::enable_if<Dummy && !Explicit, bool>::type = true> constexpr TrivialValueBase(int x) : value(x) {} template <bool Dummy = true, typename std::enable_if<Dummy && Explicit, bool>::type = true> - explicit constexpr TrivialValueBase(int x, int y) : value(y) {} + explicit constexpr TrivialValueBase(int, int y) : value(y) {} template <bool Dummy = true, typename std::enable_if<Dummy && !Explicit, bool>::type = true> - constexpr TrivialValueBase(int x, int y) : value(y) {} + constexpr TrivialValueBase(int, int y) : value(y) {} template <bool Dummy = true, typename std::enable_if<Dummy && Explicit, bool>::type = true> explicit constexpr TrivialValueBase(std::initializer_list<int>& il, int y = 0) : value(il.size()) {} template <bool Dummy = true, typename std::enable_if<Dummy && !Explicit, bool>::type = true> _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits