diff --git a/test/std/utilities/optional/optional.object/optional.object.ctor/in_place_t.pass.cpp b/test/std/utilities/optional/optional.object/optional.object.ctor/in_place_t.pass.cpp index 9b59b0259..3cc456f85 100644 --- a/test/std/utilities/optional/optional.object/optional.object.ctor/in_place_t.pass.cpp +++ b/test/std/utilities/optional/optional.object/optional.object.ctor/in_place_t.pass.cpp @@ -55,7 +55,7 @@ public: class Z { public: - Z(int i) {TEST_THROW(6);} + Z(int) {TEST_THROW(6);} }; diff --git a/test/std/utilities/optional/optional.object/optional.object.swap/swap.pass.cpp b/test/std/utilities/optional/optional.object/optional.object.swap/swap.pass.cpp index bd9c393e3..26041259f 100644 --- a/test/std/utilities/optional/optional.object/optional.object.swap/swap.pass.cpp +++ b/test/std/utilities/optional/optional.object/optional.object.swap/swap.pass.cpp @@ -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);} }; diff --git a/test/std/utilities/optional/optional.specalg/swap.pass.cpp b/test/std/utilities/optional/optional.specalg/swap.pass.cpp index 9f1d03050..31779243e 100644 --- a/test/std/utilities/optional/optional.specalg/swap.pass.cpp +++ b/test/std/utilities/optional/optional.specalg/swap.pass.cpp @@ -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);} }; diff --git a/test/support/archetypes.hpp b/test/support/archetypes.hpp index 96933fa48..37c49bd95 100644 --- a/test/support/archetypes.hpp +++ b/test/support/archetypes.hpp @@ -60,11 +60,11 @@ struct TestBase { ++alive; ++constructed; ++value_constructed; } template ::type = true> - explicit TestBase(int x, int y) noexcept : value(y) { + explicit TestBase(int, int y) noexcept : value(y) { ++alive; ++constructed; ++value_constructed; } template ::type = true> - TestBase(int x, int y) noexcept : value(y) { + TestBase(int, int y) noexcept : value(y) { ++alive; ++constructed; ++value_constructed; } template ::type = true> @@ -131,9 +131,9 @@ struct ValueBase { template ::type = true> constexpr ValueBase(int x) : value(x) {} template ::type = true> - explicit constexpr ValueBase(int x, int y) : value(y) {} + explicit constexpr ValueBase(int, int y) : value(y) {} template ::type = true> - constexpr ValueBase(int x, int y) : value(y) {} + constexpr ValueBase(int, int y) : value(y) {} template ::type = true> explicit constexpr ValueBase(std::initializer_list& il, int y = 0) : value(il.size()) {} template ::type = true> @@ -189,9 +189,9 @@ struct TrivialValueBase { template ::type = true> constexpr TrivialValueBase(int x) : value(x) {} template ::type = true> - explicit constexpr TrivialValueBase(int x, int y) : value(y) {} + explicit constexpr TrivialValueBase(int, int y) : value(y) {} template ::type = true> - constexpr TrivialValueBase(int x, int y) : value(y) {} + constexpr TrivialValueBase(int, int y) : value(y) {} template ::type = true> explicit constexpr TrivialValueBase(std::initializer_list& il, int y = 0) : value(il.size()) {} template ::type = true>