Fix build errors.

This commit is contained in:
Scott Hutchinson 2022-12-12 08:59:37 -08:00
parent 5dc0474d8a
commit ed3bcd3dd2
3 changed files with 3 additions and 5 deletions

View File

@ -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;
}

View File

@ -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();

View File

@ -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;
}