Control: tags -1 + patch

Hi,

the attached patch fixes the FTBFS with GCC-10.

Regards,
-- 
Luis Paulo (lpfll)
diff -Nru xblast-tnt-2.10.4/debian/patches/020_fix-ftbfs-with-gcc-10.patch xblast-tnt-2.10.4/debian/patches/020_fix-ftbfs-with-gcc-10.patch
--- xblast-tnt-2.10.4/debian/patches/020_fix-ftbfs-with-gcc-10.patch	1969-12-31 21:00:00.000000000 -0300
+++ xblast-tnt-2.10.4/debian/patches/020_fix-ftbfs-with-gcc-10.patch	2020-08-18 11:38:48.000000000 -0300
@@ -0,0 +1,26 @@
+Description: Fix FTBFS with GCC-10.
+Author: Luis Paulo Linares <lpfllina...@gmail.com>
+Bug-Debian: https://bugs.debian.org/957971
+
+--- xblast-tnt-2.10.4.orig/cfg_control.h
++++ xblast-tnt-2.10.4/cfg_control.h
+@@ -29,7 +29,7 @@
+ #define NUM_KEYB_CONTROLS  2
+ 
+ /* constant assignment of control to event type */
+-const XBEventCode keyEventType[NUM_KEYB_CONTROLS];
++extern const XBEventCode keyEventType[NUM_KEYB_CONTROLS];
+ 
+ /* ingame controls for editing*/
+ typedef struct
+--- xblast-tnt-2.10.4.orig/network.h
++++ xblast-tnt-2.10.4/network.h
+@@ -105,7 +105,7 @@ typedef enum
+ #define TEAM_UNDEF 252
+ 
+ /* team color assignment */
+-const XBColor teamColors[NUM_XBTS];
++extern const XBColor teamColors[NUM_XBTS];
+ 
+ /* results of game config receive/create */
+ typedef enum
diff -Nru xblast-tnt-2.10.4/debian/patches/series xblast-tnt-2.10.4/debian/patches/series
--- xblast-tnt-2.10.4/debian/patches/series	2016-01-13 06:40:36.000000000 -0200
+++ xblast-tnt-2.10.4/debian/patches/series	2020-08-18 11:37:16.000000000 -0300
@@ -1 +1,2 @@
 fix-manpage
+020_fix-ftbfs-with-gcc-10.patch

Reply via email to