diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2018-04-12 00:47:17 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2018-04-12 00:47:17 -0700 |
| commit | a2aeb2f1949c42622ccc7f9572a441e2a4475132 (patch) | |
| tree | b9f06050b6a1fc09950783508686be4143b1da28 /toolsrc/src/vcpkg.cpp | |
| parent | 8da8f3e5b3cca98e9151d421a91f5c1590a47086 (diff) | |
| download | vcpkg-a2aeb2f1949c42622ccc7f9572a441e2a4475132.tar.gz vcpkg-a2aeb2f1949c42622ccc7f9572a441e2a4475132.zip | |
[vcpkg] Mark many types noexcept. Make certain code patterns more transparent to /analyze. #ifdef-out unused code on non-windows.
Diffstat (limited to 'toolsrc/src/vcpkg.cpp')
| -rw-r--r-- | toolsrc/src/vcpkg.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/toolsrc/src/vcpkg.cpp b/toolsrc/src/vcpkg.cpp index a65045aa8..06c99e9a8 100644 --- a/toolsrc/src/vcpkg.cpp +++ b/toolsrc/src/vcpkg.cpp @@ -223,6 +223,7 @@ static void load_config() } } +#if defined(_WIN32) static std::string trim_path_from_command_line(const std::string& full_command_line) { Checks::check_exit( @@ -243,6 +244,7 @@ static std::string trim_path_from_command_line(const std::string& full_command_l ++it; return std::string(it, full_command_line.cend()); } +#endif #if defined(_WIN32) int wmain(const int argc, const wchar_t* const* const argv) |
