diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-03-02 18:52:15 -0800 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-03-02 18:52:15 -0800 |
| commit | 2054f964fd6ab4edd0fcf30d56c2de20387d3077 (patch) | |
| tree | 3e955f7f034aeb1c069e2908b14a127e0a4e13b4 /toolsrc/src/vcpkg_Checks.cpp | |
| parent | 6c26a42d54e30a22bc1c3a455646242e23e2f0df (diff) | |
| download | vcpkg-2054f964fd6ab4edd0fcf30d56c2de20387d3077.tar.gz vcpkg-2054f964fd6ab4edd0fcf30d56c2de20387d3077.zip | |
Add __declspec(noreturn) in the definitions too
...to match the declarations
Diffstat (limited to 'toolsrc/src/vcpkg_Checks.cpp')
| -rw-r--r-- | toolsrc/src/vcpkg_Checks.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/toolsrc/src/vcpkg_Checks.cpp b/toolsrc/src/vcpkg_Checks.cpp index f02addc08..02d3480a2 100644 --- a/toolsrc/src/vcpkg_Checks.cpp +++ b/toolsrc/src/vcpkg_Checks.cpp @@ -4,7 +4,7 @@ namespace vcpkg::Checks { - void unreachable() + __declspec(noreturn) void unreachable() { System::println(System::color::error, "Error: Unreachable code was reached"); #ifndef NDEBUG @@ -14,13 +14,13 @@ namespace vcpkg::Checks #endif } - void exit_with_message(const char* errorMessage) + __declspec(noreturn) void exit_with_message(const char* errorMessage) { System::println(System::color::error, errorMessage); exit(EXIT_FAILURE); } - void throw_with_message(const char* errorMessage) + __declspec(noreturn) void throw_with_message(const char* errorMessage) { throw std::runtime_error(errorMessage); } |
