File: Disable_wxWidgets_uncaught_exception_handling.patch

package info (click to toggle)
freefilesync 13.7-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 8,912 kB
  • sloc: cpp: 66,707; ansic: 447; makefile: 216
file content (38 lines) | stat: -rw-r--r-- 1,512 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Description: Disable wxWidgets uncaught exception handling
 wxWidgets' exception handling gets in the way of debugging by
 handling uncaught exceptions, thous hiding their point of origin.
 This causes the build to fail:
 application.cpp:249:2: error: #error why is wxWidgets uncaught exception handling enabled!?
  249 | #error why is wxWidgets uncaught exception handling enabled!?
      |  ^~~~~
 compilation terminated due to -Wfatal-errors.
Author: Jhonny Oliveira <jhonny.oliveira@gmail.com>
Bug: https://freefilesync.org/forum/viewtopic.php?t=10794
Forwarded: not-needed
Last-Update: 2023-10-29
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/FreeFileSync/Source/RealTimeSync/application.cpp
+++ b/FreeFileSync/Source/RealTimeSync/application.cpp
@@ -209,9 +209,6 @@
 
 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();
--- a/FreeFileSync/Source/application.cpp
+++ b/FreeFileSync/Source/application.cpp
@@ -243,9 +243,6 @@
 
 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();