aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/vcpkg-test/util.cpp
diff options
context:
space:
mode:
authorBilly O'Neal <bion@microsoft.com>2020-08-25 14:49:27 -0700
committerGitHub <noreply@github.com>2020-08-25 14:49:27 -0700
commit64cbded18ebf83f837ed77b94952f255f2b0b93e (patch)
tree77456596e999f8450d0d6effa1952903783b41f7 /toolsrc/src/vcpkg-test/util.cpp
parent58fc7e5c010ebedae8f5cb8f335b1fd5c5d5a5b5 (diff)
downloadvcpkg-64cbded18ebf83f837ed77b94952f255f2b0b93e.tar.gz
vcpkg-64cbded18ebf83f837ed77b94952f255f2b0b93e.zip
[vcpkg] Fix #13094 by avoiding the comma operator. (#13117)
* Fix #13094 by avoiding the comma operator. Drive-by remove unused parenthesis and remove macro inversion in metrics.cpp.
Diffstat (limited to 'toolsrc/src/vcpkg-test/util.cpp')
-rw-r--r--toolsrc/src/vcpkg-test/util.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/toolsrc/src/vcpkg-test/util.cpp b/toolsrc/src/vcpkg-test/util.cpp
index a2b9317a2..083861bc2 100644
--- a/toolsrc/src/vcpkg-test/util.cpp
+++ b/toolsrc/src/vcpkg-test/util.cpp
@@ -195,7 +195,9 @@ namespace vcpkg::Test
ec.assign(errno, std::system_category());
}
#else
- (void)(target, file, ec);
+ (void)target;
+ (void)file;
+ (void)ec;
vcpkg::Checks::exit_with_message(VCPKG_LINE_INFO, no_filesystem_message);
#endif
}
@@ -217,7 +219,9 @@ namespace vcpkg::Test
#elif FILESYSTEM_SYMLINK == FILESYSTEM_SYMLINK_UNIX
::vcpkg::Test::create_symlink(target, file, ec);
#else
- (void)(target, file, ec);
+ (void)target;
+ (void)file;
+ (void)ec;
vcpkg::Checks::exit_with_message(VCPKG_LINE_INFO, no_filesystem_message);
#endif
}