aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicole Mazzuca <mazzucan@outlook.com>2019-08-10 12:27:49 -0700
committernicole mazzuca <mazzucan@outlook.com>2019-08-10 13:13:21 -0700
commit29ddf1a5c2711161a5642ab515f6cae5f01ca3e9 (patch)
tree8f7da8f4df3cb2ca24e1f5eeba600da462829b79
parent58f95cc856cdb026eeadeb29d30e5ea2fd5b252c (diff)
downloadvcpkg-29ddf1a5c2711161a5642ab515f6cae5f01ca3e9.tar.gz
vcpkg-29ddf1a5c2711161a5642ab515f6cae5f01ca3e9.zip
remove clever use of std::ignore
-rw-r--r--toolsrc/src/vcpkg-test/util.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/toolsrc/src/vcpkg-test/util.cpp b/toolsrc/src/vcpkg-test/util.cpp
index 379b253b1..a2343c21b 100644
--- a/toolsrc/src/vcpkg-test/util.cpp
+++ b/toolsrc/src/vcpkg-test/util.cpp
@@ -153,7 +153,7 @@ namespace vcpkg::Test
ec.assign(errno, std::system_category());
}
#else
- std::ignore = ec;
+ static_cast<void>(ec);
vcpkg::Checks::exit_with_message(VCPKG_LINE_INFO, no_filesystem_message);
#endif
}
@@ -175,7 +175,7 @@ namespace vcpkg::Test
#elif FILESYSTEM_SYMLINK == FILESYSTEM_SYMLINK_UNIX
::vcpkg::Test::create_symlink(target, file, ec);
#else
- std::ignore = ec;
+ static_cast<void>(ec);
vcpkg::Checks::exit_with_message(VCPKG_LINE_INFO, no_filesystem_message);
#endif
}