diff options
author | Louis Dionne <ldionne@apple.com> | 2019-05-30 20:46:31 +0000 |
---|---|---|
committer | Louis Dionne <ldionne@apple.com> | 2019-05-30 20:46:31 +0000 |
commit | 5c4c44310a38ff77e15585636da57a66e737570d (patch) | |
tree | 6b969b713f66bcbbb6650fae8772bc4aba63b2c4 /pstl/test/std/algorithms/alg.nonmodifying/find_end.pass.cpp | |
parent | a481b01e958b19c2eb6564ab8930eae9058967f8 (diff) | |
download | bcm5719-llvm-5c4c44310a38ff77e15585636da57a66e737570d.tar.gz bcm5719-llvm-5c4c44310a38ff77e15585636da57a66e737570d.zip |
[pstl] Remove various warnings in the pstl headers and tests
- unused parameter warnings
- don't use single-letter template parameter names, like we do in libc++
- sign-comparison warnings
- unused variables in the tests
- unused local typedefs in the tests
- the use of #include_next
- field reordering in the tests
- unused lambda captures
Note that the rationale for why the static_casts to unsigned are OK is
that last - first must always be non-negative, since [first, last) is
a valid range.
llvm-svn: 362148
Diffstat (limited to 'pstl/test/std/algorithms/alg.nonmodifying/find_end.pass.cpp')
-rw-r--r-- | pstl/test/std/algorithms/alg.nonmodifying/find_end.pass.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pstl/test/std/algorithms/alg.nonmodifying/find_end.pass.cpp b/pstl/test/std/algorithms/alg.nonmodifying/find_end.pass.cpp index dfe499c3d1e..466314e643d 100644 --- a/pstl/test/std/algorithms/alg.nonmodifying/find_end.pass.cpp +++ b/pstl/test/std/algorithms/alg.nonmodifying/find_end.pass.cpp @@ -68,8 +68,8 @@ test(const std::size_t bits) const std::size_t max_n1 = 1000; const std::size_t max_n2 = (max_n1 * 10) / 8; - Sequence<T> in(max_n1, [max_n1, bits](std::size_t k) { return T(2 * HashBits(max_n1, bits - 1) ^ 1); }); - Sequence<T> sub(max_n2, [max_n1, bits](std::size_t k) { return T(2 * HashBits(max_n1, bits - 1)); }); + Sequence<T> in(max_n1, [bits](std::size_t k) { return T(2 * HashBits(max_n1, bits - 1) ^ 1); }); + Sequence<T> sub(max_n2, [bits](std::size_t k) { return T(2 * HashBits(max_n1, bits - 1)); }); for (std::size_t n1 = 0; n1 <= max_n1; n1 = n1 <= 16 ? n1 + 1 : size_t(3.1415 * n1)) { std::size_t sub_n[] = {0, 1, 3, n1, (n1 * 10) / 8}; |