aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicole Mazzuca <t-nimaz@microsoft.com>2019-07-11 18:26:42 -0700
committerNicole Mazzuca <t-nimaz@microsoft.com>2019-07-11 18:26:42 -0700
commit771e23c665f1960ef4e7fd9816e0d21c943a7903 (patch)
tree97a95b02df40aa81eb04bd5b5ab5616ad5b6b5d7
parenta0fe40ea5842006c0da901a99ae07d7a25531175 (diff)
downloadvcpkg-771e23c665f1960ef4e7fd9816e0d21c943a7903.tar.gz
vcpkg-771e23c665f1960ef4e7fd9816e0d21c943a7903.zip
forgot to test on macos >.<
-rw-r--r--toolsrc/src/vcpkg/base/files.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/toolsrc/src/vcpkg/base/files.cpp b/toolsrc/src/vcpkg/base/files.cpp
index 4e36fe990..e40822705 100644
--- a/toolsrc/src/vcpkg/base/files.cpp
+++ b/toolsrc/src/vcpkg/base/files.cpp
@@ -23,9 +23,11 @@
namespace fs::detail
{
- file_status symlink_status_t::operator()(const path& p, std::error_code&) const noexcept
+ file_status symlink_status_t::operator()(const path& p, std::error_code& ec) const noexcept
{
#if defined(_WIN32)
+ static_cast<void>(ec);
+
/*
do not find the permissions of the file -- it's unnecessary for the
things that vcpkg does.