summaryrefslogtreecommitdiffstats
path: root/pstl/test/std/algorithms/alg.modifying.operations/generate.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/generate.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/generate.pass.cpp')
-rw-r--r--pstl/test/std/algorithms/alg.modifying.operations/generate.pass.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/pstl/test/std/algorithms/alg.modifying.operations/generate.pass.cpp b/pstl/test/std/algorithms/alg.modifying.operations/generate.pass.cpp
index 185e98c86d2..89aa004621f 100644
--- a/pstl/test/std/algorithms/alg.modifying.operations/generate.pass.cpp
+++ b/pstl/test/std/algorithms/alg.modifying.operations/generate.pass.cpp
@@ -54,11 +54,11 @@ struct test_generate
{
Generator_count<T> g;
const auto m = n / 2;
- auto last = generate_n(exec, first, m, g);
- Size count = std::count(first, last, g.default_value());
- EXPECT_TRUE(count == m && last == std::next(first, m),
+ auto actual_last = generate_n(exec, first, m, g);
+ Size count = std::count(first, actual_last, g.default_value());
+ EXPECT_TRUE(count == m && actual_last == std::next(first, m),
"generate_n wrong result for generate_n");
- std::fill(first, last, T(0));
+ std::fill(first, actual_last, T(0));
}
}
};
@@ -69,7 +69,7 @@ test_generate_by_type()
{
for (size_t n = 0; n <= 100000; n = n < 16 ? n + 1 : size_t(3.1415 * n))
{
- Sequence<T> in(n, [](size_t v) -> T { return T(0); }); //fill by zero
+ Sequence<T> in(n, [](size_t) -> T { return T(0); }); //fill by zero
invoke_on_all_policies(test_generate(), in.begin(), in.end(), in.size());
}
OpenPOWER on IntegriCloud