aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/post_build_lint.cpp
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2016-09-30 16:48:16 -0700
committerRobert Schumacher <roschuma@microsoft.com>2016-09-30 16:48:16 -0700
commitcddc4f612ee605788928dafcb6366c6478fdb401 (patch)
tree756a551a9d40cdfd8ed4233620d56dc38058b4ee /toolsrc/src/post_build_lint.cpp
parent39c0c7152f78f67418f7a0f97fe77699e8ed2d58 (diff)
parentbcb2be360a3ce577fc09fe1ffb6b7e0335ebb889 (diff)
downloadvcpkg-cddc4f612ee605788928dafcb6366c6478fdb401.tar.gz
vcpkg-cddc4f612ee605788928dafcb6366c6478fdb401.zip
Merge branch 'master' of https://github.com/microsoft/vcpkg
Diffstat (limited to 'toolsrc/src/post_build_lint.cpp')
-rw-r--r--toolsrc/src/post_build_lint.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/toolsrc/src/post_build_lint.cpp b/toolsrc/src/post_build_lint.cpp
index 8bd9838c6..29710bd14 100644
--- a/toolsrc/src/post_build_lint.cpp
+++ b/toolsrc/src/post_build_lint.cpp
@@ -309,7 +309,7 @@ namespace vcpkg
return lint_status::SUCCESS;
}
- static void operator +=(unsigned int& left, const lint_status& right)
+ static void operator +=(size_t& left, const lint_status& right)
{
left += static_cast<unsigned int>(right);
}
@@ -317,7 +317,7 @@ namespace vcpkg
void perform_all_checks(const package_spec& spec, const vcpkg_paths& paths)
{
System::println("-- Performing post-build validation");
- unsigned int error_count = 0;
+ size_t error_count = 0;
error_count += check_for_files_in_include_directory(spec, paths);
error_count += check_for_files_in_debug_include_directory(spec, paths);
error_count += check_for_files_in_debug_share_directory(spec, paths);
@@ -345,7 +345,7 @@ namespace vcpkg
if (error_count != 0)
{
const fs::path portfile = paths.ports / spec.name / "portfile.cmake";
- System::println(System::color::error, "Found %d error(s). Please correct the portfile:\n %s", error_count, portfile.string());
+ System::println(System::color::error, "Found %u error(s). Please correct the portfile:\n %s", error_count, portfile.string());
exit(EXIT_FAILURE);
}