summaryrefslogtreecommitdiffstats
path: root/pstl/test/std/algorithms/alg.modifying.operations/alg.partitions/partition_copy.pass.cpp
diff options
context:
space:
mode:
authorLouis Dionne <ldionne@apple.com>2019-06-19 20:15:50 +0000
committerLouis Dionne <ldionne@apple.com>2019-06-19 20:15:50 +0000
commit3491119f9ba466ed871a789eb91e3b7577e36272 (patch)
tree1afc4af7d6e98ed44edfdd033ac50026bd0b5e74 /pstl/test/std/algorithms/alg.modifying.operations/alg.partitions/partition_copy.pass.cpp
parentf46f41411b1fa1360fb13235df77e60c8b6e8992 (diff)
downloadbcm5719-llvm-3491119f9ba466ed871a789eb91e3b7577e36272.tar.gz
bcm5719-llvm-3491119f9ba466ed871a789eb91e3b7577e36272.zip
[pstl] Remove warnings in tests and headers
Mostly unused parameter, unused local typedefs and shadowed declarations. This massaging it necessary if we want to be able to run the tests under the libc++ lit configuration. llvm-svn: 363872
Diffstat (limited to 'pstl/test/std/algorithms/alg.modifying.operations/alg.partitions/partition_copy.pass.cpp')
-rw-r--r--pstl/test/std/algorithms/alg.modifying.operations/alg.partitions/partition_copy.pass.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/pstl/test/std/algorithms/alg.modifying.operations/alg.partitions/partition_copy.pass.cpp b/pstl/test/std/algorithms/alg.modifying.operations/alg.partitions/partition_copy.pass.cpp
index dfb76e3321c..6dc993809ea 100644
--- a/pstl/test/std/algorithms/alg.modifying.operations/alg.partitions/partition_copy.pass.cpp
+++ b/pstl/test/std/algorithms/alg.modifying.operations/alg.partitions/partition_copy.pass.cpp
@@ -25,7 +25,7 @@ struct test_partition_copy
typename UnaryOp>
void
operator()(Policy&& exec, InputIterator first, InputIterator last, OutputIterator true_first,
- OutputIterator true_last, OutputIterator2 false_first, OutputIterator2 false_last, UnaryOp unary_op)
+ OutputIterator, OutputIterator2 false_first, OutputIterator2, UnaryOp unary_op)
{
auto actual_ret = std::partition_copy(exec, first, last, true_first, false_first, unary_op);
@@ -101,7 +101,7 @@ main()
test<int32_t>([](const int32_t value) { return value % 2; });
#if !_PSTL_ICC_16_17_TEST_REDUCTION_RELEASE_BROKEN
- test<int32_t>([](const int32_t value) { return true; });
+ test<int32_t>([](const int32_t) { return true; });
#endif
test<float64_t>([](const float64_t value) { return value > 2 << 6; });
OpenPOWER on IntegriCloud