Skip to content

Commit 9c37d8b

Browse files
committed
Fix build warning on non-Windows.
1 parent 6e7a1aa commit 9c37d8b

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

src/vcpkg/commands.build.cpp

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1709,7 +1709,16 @@ namespace vcpkg
17091709
case CIKind::GithubActions:
17101710
case CIKind::GitLabCI:
17111711
case CIKind::AzurePipelines: return true;
1712-
default: return false;
1712+
case CIKind::None:
1713+
case CIKind::AppVeyor:
1714+
case CIKind::AwsCodeBuild:
1715+
case CIKind::CircleCI:
1716+
case CIKind::HerokuCI:
1717+
case CIKind::JenkinsCI:
1718+
case CIKind::TeamCityCI:
1719+
case CIKind::TravisCI:
1720+
case CIKind::Generic: return false;
1721+
default: Checks::unreachable(VCPKG_LINE_INFO);
17131722
}
17141723
}
17151724

@@ -1718,11 +1727,6 @@ namespace vcpkg
17181727
const ReadOnlyFilesystem& fs,
17191728
const Path& file)
17201729
{
1721-
if (!is_collapsible_ci_kind(kind))
1722-
{
1723-
Checks::unreachable(VCPKG_LINE_INFO);
1724-
}
1725-
17261730
auto title = file.filename();
17271731
auto contents = fs.read_contents(file, VCPKG_LINE_INFO);
17281732
switch (kind)
@@ -1764,6 +1768,16 @@ namespace vcpkg
17641768
.append_raw(contents)
17651769
.append_raw("##[endgroup]\n");
17661770
break;
1771+
case CIKind::None:
1772+
case CIKind::AppVeyor:
1773+
case CIKind::AwsCodeBuild:
1774+
case CIKind::CircleCI:
1775+
case CIKind::HerokuCI:
1776+
case CIKind::JenkinsCI:
1777+
case CIKind::TeamCityCI:
1778+
case CIKind::TravisCI:
1779+
case CIKind::Generic: Checks::unreachable(VCPKG_LINE_INFO, "CIKind not collapsible");
1780+
default: Checks::unreachable(VCPKG_LINE_INFO);
17671781
}
17681782
}
17691783

0 commit comments

Comments
 (0)