diff options
| author | Martin Hořeňovský | 2019-03-20 15:22:27 +0100 |
|---|---|---|
| committer | GitHub | 2019-03-20 15:22:27 +0100 |
| commit | 296d44745283dca32e3bfa553ad079dfebe21671 (patch) | |
| tree | 5e9a508a8b58ff2e3f1078de39ab6df5f9a1a52a /include | |
| parent | a1cdff4f188170c5b0aa3d5d217b60d821f237df (diff) | |
| parent | 05319653492410481b90205515cc5e8b57b388fc (diff) | |
| download | catch3-296d44745283dca32e3bfa553ad079dfebe21671.tar.gz | |
Merge pull request #1575 from alabuzhev/warning_ntstatus
Suppress warning caused by ntstatus.h inclusion
Diffstat (limited to 'include')
| -rw-r--r-- | include/internal/catch_fatal_condition.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/internal/catch_fatal_condition.cpp b/include/internal/catch_fatal_condition.cpp index 24e16d3c..cea271f3 100644 --- a/include/internal/catch_fatal_condition.cpp +++ b/include/internal/catch_fatal_condition.cpp @@ -37,10 +37,10 @@ namespace Catch { // Windows can easily distinguish between SO and SigSegV, // but SigInt, SigTerm, etc are handled differently. static SignalDefs signalDefs[] = { - { EXCEPTION_ILLEGAL_INSTRUCTION, "SIGILL - Illegal instruction signal" }, - { EXCEPTION_STACK_OVERFLOW, "SIGSEGV - Stack overflow" }, - { EXCEPTION_ACCESS_VIOLATION, "SIGSEGV - Segmentation violation signal" }, - { EXCEPTION_INT_DIVIDE_BY_ZERO, "Divide by zero error" }, + { static_cast<DWORD>(EXCEPTION_ILLEGAL_INSTRUCTION), "SIGILL - Illegal instruction signal" }, + { static_cast<DWORD>(EXCEPTION_STACK_OVERFLOW), "SIGSEGV - Stack overflow" }, + { static_cast<DWORD>(EXCEPTION_ACCESS_VIOLATION), "SIGSEGV - Segmentation violation signal" }, + { static_cast<DWORD>(EXCEPTION_INT_DIVIDE_BY_ZERO), "Divide by zero error" }, }; LONG CALLBACK FatalConditionHandler::handleVectoredException(PEXCEPTION_POINTERS ExceptionInfo) { |