diff options
author | Casey Carter <Casey@Carter.net> | 2016-10-26 17:22:25 +0000 |
---|---|---|
committer | Casey Carter <Casey@Carter.net> | 2016-10-26 17:22:25 +0000 |
commit | 9450d5e26248ecd9d11aaef773dc0a83d9cee88e (patch) | |
tree | 3b670d9b0bbb087c90aa97be73b7bbd85cc038b0 /libcxx/test/support | |
parent | 660f2f9560c9a026da4183c99de2ca135fdccc84 (diff) | |
download | bcm5719-llvm-9450d5e26248ecd9d11aaef773dc0a83d9cee88e.tar.gz bcm5719-llvm-9450d5e26248ecd9d11aaef773dc0a83d9cee88e.zip |
Silence unused parameter warnings in archetypes.hpp
Reviewed at: https://reviews.llvm.org/D25958
llvm-svn: 285213
Diffstat (limited to 'libcxx/test/support')
-rw-r--r-- | libcxx/test/support/archetypes.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libcxx/test/support/archetypes.hpp b/libcxx/test/support/archetypes.hpp index 37c49bd95f9..2538c2590d8 100644 --- a/libcxx/test/support/archetypes.hpp +++ b/libcxx/test/support/archetypes.hpp @@ -68,12 +68,12 @@ struct TestBase { ++alive; ++constructed; ++value_constructed; } template <bool Dummy = true, typename std::enable_if<Dummy && Explicit, bool>::type = true> - explicit TestBase(std::initializer_list<int>& il, int y = 0) noexcept + explicit TestBase(std::initializer_list<int>& il, int = 0) noexcept : value(il.size()) { ++alive; ++constructed; ++value_constructed; } template <bool Dummy = true, typename std::enable_if<Dummy && !Explicit, bool>::type = true> - explicit TestBase(std::initializer_list<int>& il, int y = 0) noexcept : value(il.size()) { + explicit TestBase(std::initializer_list<int>& il, int = 0) noexcept : value(il.size()) { ++alive; ++constructed; ++value_constructed; } TestBase& operator=(int xvalue) noexcept { @@ -135,9 +135,9 @@ struct ValueBase { template <bool Dummy = true, typename std::enable_if<Dummy && !Explicit, bool>::type = true> 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()) {} + explicit constexpr ValueBase(std::initializer_list<int>& il, int = 0) : value(il.size()) {} template <bool Dummy = true, typename std::enable_if<Dummy && !Explicit, bool>::type = true> - constexpr ValueBase(std::initializer_list<int>& il, int y = 0) : value(il.size()) {} + constexpr ValueBase(std::initializer_list<int>& il, int = 0) : value(il.size()) {} TEST_CONSTEXPR_CXX14 ValueBase& operator=(int xvalue) noexcept { value = xvalue; return *this; @@ -193,9 +193,9 @@ struct TrivialValueBase { template <bool Dummy = true, typename std::enable_if<Dummy && !Explicit, bool>::type = true> 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()) {} + explicit constexpr TrivialValueBase(std::initializer_list<int>& il, int = 0) : value(il.size()) {} template <bool Dummy = true, typename std::enable_if<Dummy && !Explicit, bool>::type = true> - constexpr TrivialValueBase(std::initializer_list<int>& il, int y = 0) : value(il.size()) {}; + constexpr TrivialValueBase(std::initializer_list<int>& il, int = 0) : value(il.size()) {}; int value; protected: constexpr TrivialValueBase() noexcept : value(0) {} |