mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-15 04:40:37 +08:00
remove clever use of std::ignore
This commit is contained in:
parent
58f95cc856
commit
29ddf1a5c2
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user