diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-03-31 17:19:03 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-03-31 17:19:03 -0700 |
| commit | 31e55704f5854b27d80e93576f182342f6e73707 (patch) | |
| tree | 2295064549018b2077d5b90a518c46d2c9cf00eb /toolsrc/src/vcpkg_Enums.cpp | |
| parent | 095d3294d583b4fb2f72d69f9e8f67c3582715ef (diff) | |
| download | vcpkg-31e55704f5854b27d80e93576f182342f6e73707.tar.gz vcpkg-31e55704f5854b27d80e93576f182342f6e73707.zip | |
Use [[noreturn]] instead of declspec(noreturn)
Diffstat (limited to 'toolsrc/src/vcpkg_Enums.cpp')
| -rw-r--r-- | toolsrc/src/vcpkg_Enums.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/toolsrc/src/vcpkg_Enums.cpp b/toolsrc/src/vcpkg_Enums.cpp index 46e61db7b..49f21e0e6 100644 --- a/toolsrc/src/vcpkg_Enums.cpp +++ b/toolsrc/src/vcpkg_Enums.cpp @@ -9,7 +9,8 @@ namespace vcpkg::Enums return Strings::format("%s_NULLVALUE", enum_name); } - __declspec(noreturn) void nullvalue_used(const LineInfo& line_info, const std::string& enum_name) + [[noreturn]] + void nullvalue_used(const LineInfo& line_info, const std::string& enum_name) { Checks::exit_with_message(line_info, "NULLVALUE of enum %s was used", enum_name); } |
