File: gcc10.patch

package info (click to toggle)
tetrinet 0.11%2BCVS20070911-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 332 kB
  • sloc: ansic: 4,410; makefile: 41
file content (25 lines) | stat: -rw-r--r-- 706 bytes parent folder | download
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
Author: Reiner Herrmann <reiner@reiner-h.de>
Description: Fix FTBFS with GCC 10
Bug-Debian: https://bugs.debian.org/957872

--- a/tetris.c
+++ b/tetris.c
@@ -32,6 +32,7 @@
 signed char specials[MAX_SPECIALS] = {-1}; /* Special block inventory */
 int next_piece;		/* Next piece to fall */
 
+PieceData piecedata[7][4];
 static struct timeval timeout;	/* Time of next action */
 int current_piece;	/* Current piece number */
 int current_rotation;	/* Current rotation value */
--- a/tetris.h
+++ b/tetris.h
@@ -50,7 +50,7 @@
     char shape[4][4];	/* Shape data for the piece */
 } PieceData;
 
-PieceData piecedata[7][4];
+extern PieceData piecedata[7][4];
 
 extern int current_piece, current_rotation;