[vcpkg] Fix warning (as error) when building vcpgk/toolsrc with clang++ 10 or g++ 9.3 (see
MODIFY
include/vcpkg/portfileprovider.h
include/vcpkg/portfileprovider.h
@@ -12,6 +12,7 @@ namespace vcpkg::PortFileProvider
{
struct PortFileProvider
{
+ virtual ~PortFileProvider() = default;
virtual ExpectedS<const SourceControlFileLocation&> get_control_file(const std::string& src_name) const = 0;
virtual std::vector<const SourceControlFileLocation*> load_all_control_files() const = 0;
};

MODIFY
src/vcpkg-test/dependencies.cpp
src/vcpkg-test/dependencies.cpp
@@ -603,7 +603,7 @@ TEST_CASE ("version parse relaxed", "[versionplan]")
auto version_long =
Versions::RelaxedVersion::from_string("1.20.300.4000.50000.6000000.70000000.80000000.18446744073709551610");
- check_relaxed_version(version_long, {1, 20, 300, 4000, 50000, 6000000, 70000000, 80000000, 18446744073709551610});
+ check_relaxed_version(version_long, {1, 20, 300, 4000, 50000, 6000000, 70000000, 80000000, 18446744073709551610u});
auto version_invalid_characters = Versions::RelaxedVersion::from_string("1.a.0");
CHECK(!version_invalid_characters.has_value());

MODIFY
src/vcpkg/versiondeserializers.cpp
src/vcpkg/versiondeserializers.cpp
@@ -12,7 +12,6 @@ namespace
constexpr StringLiteral VERSION_STRING = "version-string";
constexpr StringLiteral VERSION_DATE = "version-date";
constexpr StringLiteral PORT_VERSION = "port-version";
- constexpr StringLiteral GIT_TREE = "git-tree";
struct VersionDeserializer final : Json::IDeserializer<std::string>
{

[vcpkg] Fix warning (as error) when building vcpgk/toolsrc with clang++ 10 or g++ 9.3 (see #15148) (#15149)