Control: tags -1 + patch Hi,
the attached patch fixes the FTBFS with GCC 10. Regards, Reiner
diff -Nru tetrinet-0.11+CVS20070911/debian/patches/gcc10.patch tetrinet-0.11+CVS20070911/debian/patches/gcc10.patch --- tetrinet-0.11+CVS20070911/debian/patches/gcc10.patch 1970-01-01 01:00:00.000000000 +0100 +++ tetrinet-0.11+CVS20070911/debian/patches/gcc10.patch 2020-07-26 00:51:40.000000000 +0200 @@ -0,0 +1,25 @@ +Author: Reiner Herrmann <rei...@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; + diff -Nru tetrinet-0.11+CVS20070911/debian/patches/series tetrinet-0.11+CVS20070911/debian/patches/series --- tetrinet-0.11+CVS20070911/debian/patches/series 1970-01-01 01:00:00.000000000 +0100 +++ tetrinet-0.11+CVS20070911/debian/patches/series 2020-07-26 00:49:45.000000000 +0200 @@ -0,0 +1 @@ +gcc10.patch
signature.asc
Description: PGP signature