diff --git a/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.symlink_status/symlink_status.pass.cpp b/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.symlink_status/symlink_status.pass.cpp --- a/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.symlink_status/symlink_status.pass.cpp +++ b/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() == "");