Skip to content

Commit

Permalink
Fix more -Wshadow warnings introduced by recent Clang change
Browse files Browse the repository at this point in the history
llvm-svn: 299411
  • Loading branch information
EricWF committed Apr 4, 2017
1 parent 53ddd72 commit 6132952
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ int main()
V(3, 2),
};
{
typedef std::pair<const int, double> V;
typedef min_allocator<V> A;
typedef test_compare<std::less<int> > C;
A a;
Expand All @@ -106,7 +105,6 @@ int main()
assert(m.get_allocator() == a);
}
{
typedef std::pair<const int, double> V;
typedef explicit_allocator<V> A;
typedef test_compare<std::less<int> > C;
A a;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ int main()
#endif
#if TEST_STD_VER > 11
{
typedef std::pair<const int, double> V;
typedef std::multimap<int, double, std::less<>> M;

typedef std::pair<M::iterator, M::iterator> R;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ int main()
#endif
#if TEST_STD_VER > 11
{
typedef std::pair<const int, double> V;
typedef std::multimap<int, double, std::less<>> M;
typedef M::iterator R;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ int main()
#endif
#if TEST_STD_VER > 11
{
typedef std::pair<const int, double> V;
typedef std::multimap<int, double, std::less<>> M;
typedef M::iterator R;
V ar[] =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ int main()
#endif
#if TEST_STD_VER > 11
{
typedef std::pair<const int, double> V;
typedef std::multimap<int, double, std::less<>> M;
typedef M::iterator R;
V ar[] =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ void test_throws()
#ifndef TEST_HAS_NO_EXCEPTIONS
using T = ThrowAssign;
{
using T = ThrowAssign;
optional<T> opt;
try {
opt = 42;
Expand Down

0 comments on commit 6132952

Please sign in to comment.