File FreeFileSync-remove_ifdef_exceptions.patch of Package FreeFileSync
Index: FreeFileSync-14.3/FreeFileSync/Source/application.cpp
===================================================================
--- FreeFileSync-14.3.orig/FreeFileSync/Source/application.cpp
+++ FreeFileSync-14.3/FreeFileSync/Source/application.cpp
@@ -239,10 +239,6 @@ wxLayoutDirection Application::GetLayout
int Application::OnRun()
{
-#if wxUSE_EXCEPTIONS
-#error why is wxWidgets uncaught exception handling enabled!?
-#endif
-
//exception => Windows: let it crash and create mini dump!!! Linux/macOS: std::exception::what() logged to console
[[maybe_unused]] const int rc = wxApp::OnRun();
return static_cast<int>(exitCode_);
Index: FreeFileSync-14.3/FreeFileSync/Source/RealTimeSync/application.cpp
===================================================================
--- FreeFileSync-14.3.orig/FreeFileSync/Source/RealTimeSync/application.cpp
+++ FreeFileSync-14.3/FreeFileSync/Source/RealTimeSync/application.cpp
@@ -213,10 +213,6 @@ wxLayoutDirection Application::GetLayout
int Application::OnRun()
{
-#if wxUSE_EXCEPTIONS
-#error why is wxWidgets uncaught exception handling enabled!?
-#endif
-
//exception => Windows: let it crash and create mini dump!!! Linux/macOS: std::exception::what() logged to console
[[maybe_unused]] const int rc = wxApp::OnRun();
return static_cast<int>(FfsExitCode::success); //process exit code