aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toolsrc/include/vcpkg_Enums.h3
-rw-r--r--toolsrc/src/PostBuildLint_BuildPolicies.cpp2
-rw-r--r--toolsrc/src/vcpkg_Enums.cpp2
3 files changed, 4 insertions, 3 deletions
diff --git a/toolsrc/include/vcpkg_Enums.h b/toolsrc/include/vcpkg_Enums.h
index b1ecc311b..ef41155d9 100644
--- a/toolsrc/include/vcpkg_Enums.h
+++ b/toolsrc/include/vcpkg_Enums.h
@@ -1,9 +1,10 @@
#pragma once
#include <string>
+#include "LineInfo.h"
namespace vcpkg::Enums
{
std::string nullvalue_toString(const std::string& enum_name);
- __declspec(noreturn) void nullvalue_used(const std::string& enum_name);
+ __declspec(noreturn) void nullvalue_used(const LineInfo& line_info, const std::string& enum_name);
}
diff --git a/toolsrc/src/PostBuildLint_BuildPolicies.cpp b/toolsrc/src/PostBuildLint_BuildPolicies.cpp
index 07464bb4e..b7ebf5380 100644
--- a/toolsrc/src/PostBuildLint_BuildPolicies.cpp
+++ b/toolsrc/src/PostBuildLint_BuildPolicies.cpp
@@ -43,7 +43,7 @@ namespace vcpkg::PostBuildLint::BuildPolicies
case ONLY_RELEASE_CRT:
return CMAKE_VARIABLE_ONLY_RELEASE_CRT;
case NULLVALUE:
- Enums::nullvalue_used(ENUM_NAME);
+ Enums::nullvalue_used(VCPKG_LINE_INFO, ENUM_NAME);
default:
Checks::unreachable(VCPKG_LINE_INFO);
}
diff --git a/toolsrc/src/vcpkg_Enums.cpp b/toolsrc/src/vcpkg_Enums.cpp
index 0a6662894..c8925fc63 100644
--- a/toolsrc/src/vcpkg_Enums.cpp
+++ b/toolsrc/src/vcpkg_Enums.cpp
@@ -9,7 +9,7 @@ namespace vcpkg::Enums
return Strings::format("%s_NULLVALUE", enum_name);
}
- __declspec(noreturn) void nullvalue_used(const std::string& enum_name)
+ __declspec(noreturn) void nullvalue_used(const LineInfo& line_info, const std::string& enum_name)
{
Checks::exit_with_message("NULLVALUE of enum %s was used", enum_name);
}