[libcxx-commits] [PATCH] D89867: [libcxx] [test] Add another (void) cast for a function marked nodiscard in MS STL

Martin Storsjö via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Oct 21 23:12:11 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG586892d583a0: [libcxx] [test] Add another (void) cast for a function marked nodiscard in MS… (authored by mstorsjo).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D89867/new/

https://reviews.llvm.org/D89867

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


Index: libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.symlink_status/symlink_status.pass.cpp
===================================================================
--- libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.symlink_status/symlink_status.pass.cpp
+++ libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.symlink_status/symlink_status.pass.cpp
@@ -83,7 +83,7 @@
 #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() == "");


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89867.299875.patch
Type: text/x-patch
Size: 705 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20201022/ef3b69fb/attachment-0001.bin>


More information about the libcxx-commits mailing list