Fix more issues exposed by -pedantic-errors in c++03 mode
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@228711 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7f9cc52faf
commit
5495e2efb9
@ -52,4 +52,4 @@ _LIBCPP_END_NAMESPACE_CHRONO_LFTS
|
||||
|
||||
#endif /* _LIBCPP_STD_VER > 11 */
|
||||
|
||||
#endif /* _LIBCPP_EXPERIMENTAL_CHRONO */
|
||||
#endif /* _LIBCPP_EXPERIMENTAL_CHRONO */
|
||||
|
@ -56,4 +56,4 @@ _LIBCPP_END_NAMESPACE_LFTS
|
||||
|
||||
#endif /* _LIBCPP_STD_VER > 11 */
|
||||
|
||||
#endif /* _LIBCPP_EXPERIMENTAL_SYSTEM_ERROR */
|
||||
#endif /* _LIBCPP_EXPERIMENTAL_SYSTEM_ERROR */
|
||||
|
@ -46,7 +46,7 @@ make(int size, int start = 0 )
|
||||
for (int i = 0; i < start; ++i)
|
||||
c.pop_front();
|
||||
return c;
|
||||
};
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
|
@ -36,7 +36,7 @@ make(int size, int start = 0 )
|
||||
for (int i = 0; i < start; ++i)
|
||||
c.pop_front();
|
||||
return c;
|
||||
};
|
||||
}
|
||||
|
||||
template <class C>
|
||||
void
|
||||
|
@ -36,7 +36,7 @@ make(int size, int start = 0 )
|
||||
for (int i = 0; i < start; ++i)
|
||||
c.pop_front();
|
||||
return c;
|
||||
};
|
||||
}
|
||||
|
||||
template <class C>
|
||||
void
|
||||
|
@ -36,7 +36,7 @@ make(int size, int start = 0 )
|
||||
for (int i = 0; i < start; ++i)
|
||||
c.pop_front();
|
||||
return c;
|
||||
};
|
||||
}
|
||||
|
||||
template <class C>
|
||||
void
|
||||
|
@ -38,7 +38,7 @@ make(int size, int start = 0 )
|
||||
for (int i = 0; i < start; ++i)
|
||||
c.pop_front();
|
||||
return c;
|
||||
};
|
||||
}
|
||||
|
||||
template <class C>
|
||||
void
|
||||
|
@ -37,7 +37,7 @@ make(int size, int start = 0 )
|
||||
for (int i = 0; i < start; ++i)
|
||||
c.pop_front();
|
||||
return c;
|
||||
};
|
||||
}
|
||||
|
||||
template <class C>
|
||||
void
|
||||
|
@ -39,7 +39,7 @@ make(int size, int start = 0 )
|
||||
for (int i = 0; i < start; ++i)
|
||||
c.pop_front();
|
||||
return c;
|
||||
};
|
||||
}
|
||||
|
||||
template <class C>
|
||||
void
|
||||
|
@ -39,7 +39,7 @@ make(int size, int start = 0 )
|
||||
for (int i = 0; i < start; ++i)
|
||||
c.pop_front();
|
||||
return c;
|
||||
};
|
||||
}
|
||||
|
||||
template <class C>
|
||||
void
|
||||
|
@ -39,7 +39,7 @@ make(int size, int start = 0 )
|
||||
for (int i = 0; i < start; ++i)
|
||||
c.pop_front();
|
||||
return c;
|
||||
};
|
||||
}
|
||||
|
||||
template <class C>
|
||||
void
|
||||
|
@ -36,7 +36,7 @@ make(int size, int start = 0 )
|
||||
for (int i = 0; i < start; ++i)
|
||||
c.pop_front();
|
||||
return c;
|
||||
};
|
||||
}
|
||||
|
||||
template <class C>
|
||||
void
|
||||
|
@ -38,7 +38,7 @@ make(int size, int start = 0 )
|
||||
for (int i = 0; i < start; ++i)
|
||||
c.pop_front();
|
||||
return c;
|
||||
};
|
||||
}
|
||||
|
||||
template <class C>
|
||||
void
|
||||
|
@ -42,7 +42,7 @@ make(int size, int start = 0 )
|
||||
for (int i = 0; i < start; ++i)
|
||||
c.pop_front();
|
||||
return c;
|
||||
};
|
||||
}
|
||||
|
||||
template <class C>
|
||||
void
|
||||
|
@ -39,7 +39,7 @@ make(int size, int start = 0 )
|
||||
for (int i = 0; i < start; ++i)
|
||||
c.pop_front();
|
||||
return c;
|
||||
};
|
||||
}
|
||||
|
||||
template <class C>
|
||||
void
|
||||
|
@ -38,7 +38,7 @@ make(int size, int start = 0 )
|
||||
for (int i = 0; i < start; ++i)
|
||||
c.pop_front();
|
||||
return c;
|
||||
};
|
||||
}
|
||||
|
||||
template <class C>
|
||||
void
|
||||
|
@ -36,7 +36,7 @@ make(int size, int start = 0 )
|
||||
for (int i = 0; i < start; ++i)
|
||||
c.pop_front();
|
||||
return c;
|
||||
};
|
||||
}
|
||||
|
||||
template <class C>
|
||||
void
|
||||
|
@ -36,7 +36,7 @@ make(int size, int start = 0 )
|
||||
for (int i = 0; i < start; ++i)
|
||||
c.pop_front();
|
||||
return c;
|
||||
};
|
||||
}
|
||||
|
||||
template <class C>
|
||||
void
|
||||
|
@ -36,7 +36,7 @@ make(int size, int start = 0 )
|
||||
for (int i = 0; i < start; ++i)
|
||||
c.pop_front();
|
||||
return c;
|
||||
};
|
||||
}
|
||||
|
||||
template <class C>
|
||||
void
|
||||
|
@ -38,7 +38,7 @@ make(int size, int start = 0 )
|
||||
for (int i = 0; i < start; ++i)
|
||||
c.pop_front();
|
||||
return c;
|
||||
};
|
||||
}
|
||||
|
||||
template <class C>
|
||||
void test(int size)
|
||||
|
@ -41,7 +41,7 @@ make(int size, int start = 0 )
|
||||
for (int i = 0; i < start; ++i)
|
||||
c.pop_front();
|
||||
return c;
|
||||
};
|
||||
}
|
||||
|
||||
template <class C>
|
||||
void test(int size)
|
||||
|
@ -36,7 +36,7 @@ make(int size, int start = 0 )
|
||||
for (int i = 0; i < start; ++i)
|
||||
c.pop_front();
|
||||
return c;
|
||||
};
|
||||
}
|
||||
|
||||
template <class C>
|
||||
void
|
||||
|
@ -39,7 +39,7 @@ make(int size, int start = 0 )
|
||||
for (int i = 0; i < start; ++i)
|
||||
c.pop_front();
|
||||
return c;
|
||||
};
|
||||
}
|
||||
|
||||
template <class C>
|
||||
void
|
||||
|
@ -41,7 +41,7 @@ make(int size, int start = 0 )
|
||||
for (int i = 0; i < start; ++i)
|
||||
c.pop_front();
|
||||
return c;
|
||||
};
|
||||
}
|
||||
|
||||
template <class C>
|
||||
void testN(int start, int N)
|
||||
|
@ -41,7 +41,7 @@ make(int size, int start = 0 )
|
||||
for (int i = 0; i < start; ++i)
|
||||
c.pop_front();
|
||||
return c;
|
||||
};
|
||||
}
|
||||
|
||||
template <class C>
|
||||
void testN(int start, int N)
|
||||
|
@ -41,7 +41,7 @@ make(int size, int start = 0 )
|
||||
for (int i = 0; i < start; ++i)
|
||||
c.pop_front();
|
||||
return c;
|
||||
};
|
||||
}
|
||||
|
||||
template <class C>
|
||||
void testN(int start, int N)
|
||||
|
@ -41,7 +41,7 @@ make(int size, int start = 0 )
|
||||
for (int i = 0; i < start; ++i)
|
||||
c.pop_front();
|
||||
return c;
|
||||
};
|
||||
}
|
||||
|
||||
template <class C>
|
||||
void testN(int start, int N)
|
||||
|
@ -37,7 +37,7 @@ make(int size, int start = 0 )
|
||||
for (int i = 0; i < start; ++i)
|
||||
c.pop_front();
|
||||
return c;
|
||||
};
|
||||
}
|
||||
|
||||
template <class C>
|
||||
void testN(int start, int N, int M)
|
||||
|
@ -7,6 +7,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// NOTE: Undefined __DEPRECATED to prevent this test from failing with -Werror
|
||||
#undef __DEPRECATED
|
||||
#include <assert.h>
|
||||
#include <ext/hash_map>
|
||||
#include <string>
|
||||
|
Loading…
x
Reference in New Issue
Block a user