Add __declspec(noreturn) to the definitions to match the declarations
MODIFY
src/vcpkg_Enums.cpp
src/vcpkg_Enums.cpp
@@ -9,12 +9,12 @@ namespace vcpkg::Enums
return Strings::format("%s_NULLVALUE", enum_name);
}
- void nullvalue_used(const std::string& enum_name)
+ __declspec(noreturn) void nullvalue_used(const std::string& enum_name)
{
Checks::exit_with_message("NULLVALUE of enum %s was used", enum_name);
}
- void unreachable(const std::string& enum_name)
+ __declspec(noreturn) void unreachable(const std::string& enum_name)
{
Checks::exit_with_message("Unreachable code for enum, %s", enum_name);
}

Add __declspec(noreturn) to the definitions to match the declarations