Skip to content

Commit

Permalink
Fix build errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottHutchinson committed Dec 12, 2022
1 parent 5dc0474 commit ed3bcd3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions include/internal/catch_fatal_condition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,7 @@ namespace Catch {

void FatalConditionHandler::disengage_platform() noexcept {
if (SetUnhandledExceptionFilter(previousTopLevelExceptionFilter) != topLevelExceptionFilter) {
Catch::cerr()
<< "Unexpected SEH unhandled exception filter on disengage."
<< " The filter was restored, but might be rolled back unexpectedly.";
CATCH_RUNTIME_ERROR("Could not restore previous top level exception filter");
}
previousTopLevelExceptionFilter = nullptr;
}
Expand Down
2 changes: 1 addition & 1 deletion include/internal/catch_fatal_condition.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace Catch {
// Should be if-defed to work on current platform, can assume
// engage-disengage 1:1 pairing.
void engage_platform();
void disengage_platform();
void disengage_platform() noexcept;
public:
// Should also have platform-specific implementations as needed
FatalConditionHandler();
Expand Down
2 changes: 1 addition & 1 deletion projects/SelfTest/UsageTests/Misc.tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ TEST_CASE("Validate SEH behavior - unhandled", "[.approvals][FatalConditionHandl
throw_no_catch();
}

static LONG CALLBACK dummyExceptionFilter(PEXCEPTION_POINTERS ExceptionInfo) {
static LONG CALLBACK dummyExceptionFilter(PEXCEPTION_POINTERS /*ExceptionInfo*/) {
return EXCEPTION_CONTINUE_SEARCH;
}

Expand Down

0 comments on commit ed3bcd3

Please sign in to comment.