File FreeFileSync-remove_ifdef_exceptions.patch of Package FreeFileSync
Index: FreeFileSync-13.3/FreeFileSync/Source/application.cpp
===================================================================
--- FreeFileSync-13.3.orig/FreeFileSync/Source/application.cpp
+++ FreeFileSync-13.3/FreeFileSync/Source/application.cpp
@@ -243,10 +243,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-13.3/FreeFileSync/Source/RealTimeSync/application.cpp
===================================================================
--- FreeFileSync-13.3.orig/FreeFileSync/Source/RealTimeSync/application.cpp
+++ FreeFileSync-13.3/FreeFileSync/Source/RealTimeSync/application.cpp
@@ -209,10 +209,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