[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 03:50:12 PDT 2020
mstorsjo created this revision.
mstorsjo added a reviewer: libc++.
Herald added a project: libc++.
Herald added 1 blocking reviewer(s): libc++.
mstorsjo requested review of this revision.
I had missed this one before, due to testing with overly broad ifdefs disabling parts of the tests...
Repository:
rG LLVM Github Monorepo
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.299634.patch
Type: text/x-patch
Size: 705 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20201021/06720129/attachment-0001.bin>
More information about the libcxx-commits
mailing list