[libcxx] [test] Add another (void) cast for a function marked nodiscard in MS STL
authorMartin Storsjö <martin@martin.st>
Wed, 21 Oct 2020 08:44:51 +0000 (11:44 +0300)
committerMartin Storsjö <martin@martin.st>
Thu, 22 Oct 2020 06:00:57 +0000 (09:00 +0300)
Differential Revision: https://reviews.llvm.org/D89867

libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.symlink_status/symlink_status.pass.cpp

index 8d320d7..d211677 100644 (file)
@@ -83,7 +83,7 @@ TEST_CASE(test_symlink_status_cannot_resolve)
 #ifndef TEST_HAS_NO_EXCEPTIONS
         { // test throwing case
             try {
-                symlink_status(p);
+                (void)symlink_status(p);
             } catch (filesystem_error const& err) {
                 TEST_CHECK(err.path1() == p);
                 TEST_CHECK(err.path2() == "");