[vcpkg] Fix warnings on non-Windows

This commit is contained in:
Robert Schumacher 2018-05-31 10:51:00 -07:00
parent bc91dbe87f
commit 3fc54807cb
2 changed files with 3 additions and 1 deletions

View File

@ -254,7 +254,7 @@ namespace vcpkg::System
Debug::println("system(%s)", cmd_line.c_str());
fflush(nullptr);
int rc = system(cmd_line.c_str());
Debug::println("system() returned %d", rc);
Debug::println("system() returned %d after %d us", rc, static_cast<int>(timer.microseconds()));
return rc;
#endif
}

View File

@ -679,6 +679,7 @@ namespace vcpkg::Commands::Fetch
std::string major_version() const { return version.substr(0, 2); }
};
#if defined(WIN32)
static std::vector<VisualStudioInstance> get_visual_studio_instances(const VcpkgPaths& paths)
{
const auto& fs = paths.get_filesystem();
@ -745,6 +746,7 @@ namespace vcpkg::Commands::Fetch
return instances;
}
#endif
#if defined(_WIN32)
std::vector<Toolset> find_toolset_instances_preferred_first(const VcpkgPaths& paths)