From 3491119f9ba466ed871a789eb91e3b7577e36272 Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Wed, 19 Jun 2019 20:15:50 +0000 Subject: [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 --- .../alg.modifying.operations/transform_binary.pass.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'pstl/test/std/algorithms/alg.modifying.operations/transform_binary.pass.cpp') diff --git a/pstl/test/std/algorithms/alg.modifying.operations/transform_binary.pass.cpp b/pstl/test/std/algorithms/alg.modifying.operations/transform_binary.pass.cpp index e440d6708c8..ef9e1c28a8b 100644 --- a/pstl/test/std/algorithms/alg.modifying.operations/transform_binary.pass.cpp +++ b/pstl/test/std/algorithms/alg.modifying.operations/transform_binary.pass.cpp @@ -60,10 +60,11 @@ struct test_one_policy template void - operator()(Policy&& exec, InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2, - OutputIterator out_first, OutputIterator out_last, BinaryOp op) + operator()(Policy&& exec, InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2, + OutputIterator out_first, OutputIterator, BinaryOp op) { - auto orrr = std::transform(exec, first1, last1, first2, out_first, op); + auto result = std::transform(exec, first1, last1, first2, out_first, op); + (void)result; check_and_reset(first1, last1, first2, out_first); } }; @@ -77,7 +78,7 @@ test(Predicate pred) Sequence in1(n, [](size_t k) { return k % 5 != 1 ? 3 * k - 7 : 0; }); Sequence in2(n, [](size_t k) { return k % 7 != 2 ? 5 * k - 5 : 0; }); - Sequence out(n, [](size_t k) { return -1; }); + Sequence out(n, [](size_t) { return -1; }); invoke_on_all_policies(test_one_policy(), in1.begin(), in1.end(), in2.begin(), in2.end(), out.begin(), out.end(), pred); -- cgit v1.2.3