libstdc++: Fix some warnings in filesystem tests
authorJonathan Wakely <jwakely@redhat.com>
Thu, 5 Mar 2020 17:21:24 +0000 (17:21 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 5 Mar 2020 17:23:44 +0000 (17:23 +0000)
commit9412b35affa46a18f7e657fb449b449ac9a4a599
treeeec7292e17469155635d3b3152635b1085020405
parenta5090de45af6c9c0f93306de4b6a4d3b56fccd94
libstdc++: Fix some warnings in filesystem tests

There's a -Wunused-but-set-variable warning in operations/all.cc which
can be fixed with [[maybe_unused]].

The statements in operations/copy.cc give -Wunused-value warnings. I
think I meant to use |= rather than !=.

And operations/file_size.cc gets -Wsign-compare warnings.

* testsuite/27_io/filesystem/operations/all.cc: Mark unused variable.
* testsuite/27_io/filesystem/operations/copy.cc: Fix typo.
* testsuite/experimental/filesystem/operations/copy.cc: Likewise.
* testsuite/27_io/filesystem/operations/file_size.cc: Use correct type
for return value, and in comparison.
* testsuite/experimental/filesystem/operations/file_size.cc: Likewise.
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/27_io/filesystem/operations/all.cc
libstdc++-v3/testsuite/27_io/filesystem/operations/copy.cc
libstdc++-v3/testsuite/27_io/filesystem/operations/file_size.cc
libstdc++-v3/testsuite/experimental/filesystem/operations/copy.cc
libstdc++-v3/testsuite/experimental/filesystem/operations/file_size.cc