diff options
Diffstat (limited to 'libcxx/test/std/iterators')
2 files changed, 4 insertions, 4 deletions
diff --git a/libcxx/test/std/iterators/iterators.general/gcc_workaround.pass.cpp b/libcxx/test/std/iterators/iterators.general/gcc_workaround.pass.cpp index 6522bd3c7bc..28a5e95f3ed 100644 --- a/libcxx/test/std/iterators/iterators.general/gcc_workaround.pass.cpp +++ b/libcxx/test/std/iterators/iterators.general/gcc_workaround.pass.cpp @@ -11,10 +11,10 @@ #include <string> -void f(const std::string &s) { s.begin(); } +void f(const std::string &s) { (void)s.begin(); } #include <vector> -void AppendTo(const std::vector<char> &v) { v.begin(); } +void AppendTo(const std::vector<char> &v) { (void)v.begin(); } int main() {} diff --git a/libcxx/test/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.nonmember/make_move_iterator.pass.cpp b/libcxx/test/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.nonmember/make_move_iterator.pass.cpp index d2ad79af66f..71b0eaca737 100644 --- a/libcxx/test/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.nonmember/make_move_iterator.pass.cpp +++ b/libcxx/test/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.nonmember/make_move_iterator.pass.cpp @@ -43,8 +43,8 @@ int main() } { int a[] = {1,2,3,4}; - std::make_move_iterator(a+4); - std::make_move_iterator(a); // test for LWG issue 2061 + (void)std::make_move_iterator(a+4); + (void)std::make_move_iterator(a); // test for LWG issue 2061 } #if TEST_STD_VER > 14 |