summaryrefslogtreecommitdiffstats
path: root/pstl/test/std/algorithms/alg.nonmodifying/search_n.pass.cpp
diff options
context:
space:
mode:
authorLouis Dionne <ldionne@apple.com>2019-05-30 20:46:31 +0000
committerLouis Dionne <ldionne@apple.com>2019-05-30 20:46:31 +0000
commit5c4c44310a38ff77e15585636da57a66e737570d (patch)
tree6b969b713f66bcbbb6650fae8772bc4aba63b2c4 /pstl/test/std/algorithms/alg.nonmodifying/search_n.pass.cpp
parenta481b01e958b19c2eb6564ab8930eae9058967f8 (diff)
downloadbcm5719-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/search_n.pass.cpp')
-rw-r--r--pstl/test/std/algorithms/alg.nonmodifying/search_n.pass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/pstl/test/std/algorithms/alg.nonmodifying/search_n.pass.cpp b/pstl/test/std/algorithms/alg.nonmodifying/search_n.pass.cpp
index 28fcb36ad80..ac8a422698c 100644
--- a/pstl/test/std/algorithms/alg.nonmodifying/search_n.pass.cpp
+++ b/pstl/test/std/algorithms/alg.nonmodifying/search_n.pass.cpp
@@ -67,7 +67,7 @@ test()
}
for (auto r : res)
{
- Sequence<T> in(n1, [n1](std::size_t k) { return T(0); });
+ Sequence<T> in(n1, [](std::size_t k) { return T(0); });
std::size_t i = r, isub = 0;
for (; i < n1 & isub < n2; ++i, ++isub)
in[i] = value;
OpenPOWER on IntegriCloud