File: 008-ignore-gcc-error.patch

package info (click to toggle)
openrct2 0.4.21%2Bds-1
  • links: PTS, VCS
  • area: contrib
  • in suites: trixie
  • size: 96,192 kB
  • sloc: cpp: 655,408; ansic: 1,322; javascript: 545; xml: 513; sh: 400; python: 269; php: 34; makefile: 18
file content (23 lines) | stat: -rw-r--r-- 889 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
From: Mathias Gibbens <gibmat@debian.org>
Description: Temporarily ignore an error generated by the latest version of gcc
Forwarded: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105580
diff --git a/src/openrct2-ui/windows/Changelog.cpp b/src/openrct2-ui/windows/Changelog.cpp
index 2e60a1c1..d63f7eef 100644
--- a/src/openrct2-ui/windows/Changelog.cpp
+++ b/src/openrct2-ui/windows/Changelog.cpp
@@ -7,6 +7,9 @@
  * OpenRCT2 is licensed under the GNU General Public License version 3.
  *****************************************************************************/
 
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wnull-dereference"
+
 #include <fstream>
 #include <gzstream.h>
 #include <openrct2-ui/interface/Widget.h>
@@ -331,3 +334,5 @@ namespace OpenRCT2::Ui::Windows
         return window;
     }
 } // namespace OpenRCT2::Ui::Windows
+
+#pragma GCC diagnostic pop