File: 006-ignore-gcc-error.patch

package info (click to toggle)
openrct2 0.4.25%2Bds-1
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid
  • size: 103,212 kB
  • sloc: cpp: 667,962; ansic: 1,322; xml: 626; javascript: 581; sh: 435; python: 269; php: 34; makefile: 19
file content (23 lines) | stat: -rw-r--r-- 889 bytes parent folder | download | duplicates (3)
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 f8a0713c..1d89bf6f 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>
@@ -288,3 +291,5 @@ namespace OpenRCT2::Ui::Windows
         return window;
     }
 } // namespace OpenRCT2::Ui::Windows
+
+#pragma GCC diagnostic pop