diff options
author | Gergely Imreh | 2020-09-19 19:47:45 +0100 |
---|---|---|
committer | Gergely Imreh | 2020-09-19 19:50:34 +0100 |
commit | 227bda202359028cb863808f9e32529d386f80d2 (patch) | |
tree | cdc233bca7e4bb336d6580ab188a6edf264de15b /gcc-10-globals.patch | |
parent | cd6ff27df0edd841aecde4c78e711ad9a260abea (diff) | |
download | aur-gnushogi.tar.gz |
fix GCC 10 compilation issues using Debian patch
Patch from https://salsa.debian.org/debian/gnushogi/-/commit/ae9ff5c5d4a047e895030add12cc0e75480026b5
Signed-off-by: Gergely Imreh <imrehg@gmail.com>
Diffstat (limited to 'gcc-10-globals.patch')
-rw-r--r-- | gcc-10-globals.patch | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/gcc-10-globals.patch b/gcc-10-globals.patch new file mode 100644 index 000000000000..3d7533352f3f --- /dev/null +++ b/gcc-10-globals.patch @@ -0,0 +1,84 @@ +Index: gnushogi-1.4.2/gnushogi/commondsp.c +=================================================================== +--- gnushogi-1.4.2.orig/gnushogi/commondsp.c ++++ gnushogi-1.4.2/gnushogi/commondsp.c +@@ -53,6 +53,7 @@ char mvstr[4][6]; + char *InPtr; + int InBackground = false; + ++unsigned short MV[MAXDEPTH]; + + #if defined(BOOKTEST) + +@@ -2034,7 +2035,7 @@ InputCommand(char *command) + { + int i; + +- printf(" %6d ", MSCORE); ++ printf(" %6d ", 0); + + for (i = 1; MV[i] > 0; i++) + { +Index: gnushogi-1.4.2/gnushogi/cursesdsp.c +=================================================================== +--- gnushogi-1.4.2.orig/gnushogi/cursesdsp.c ++++ gnushogi-1.4.2/gnushogi/cursesdsp.c +@@ -62,18 +62,12 @@ + + #define FLUSH_SCANW fflush(stdout), scanw + +-int mycnt1, mycnt2; +- + #define MARGIN (5) + #define TAB (58) + + #define VIR_C(s) ((flag.reverse) ? (NO_COLS - 1 - column(s)) : column(s)) + #define VIR_R(s) ((flag.reverse) ? (NO_ROWS - 1 - row(s)) : row(s)) + +-unsigned short MV[MAXDEPTH]; +-int MSCORE; +-char *DRAW; +- + /* Forward declarations. */ + /* FIXME: change this name, puh-leeze! */ + +Index: gnushogi-1.4.2/gnushogi/globals.c +=================================================================== +--- gnushogi-1.4.2.orig/gnushogi/globals.c ++++ gnushogi-1.4.2/gnushogi/globals.c +@@ -201,3 +201,6 @@ char *DRAW; + char *DRAW_REPETITION = "Repetition"; + char *DRAW_MAXMOVES = "Max Moves"; + char *DRAW_JUSTDRAW = "Drawn game!"; ++ ++int mycnt1, mycnt2; ++ +Index: gnushogi-1.4.2/gnushogi/gnushogi.h +=================================================================== +--- gnushogi-1.4.2.orig/gnushogi/gnushogi.h ++++ gnushogi-1.4.2/gnushogi/gnushogi.h +@@ -685,8 +685,6 @@ extern long znodes; + extern char ColorStr[2][10]; + + extern char mvstr[4][6]; +-extern unsigned short MV[MAXDEPTH]; +-extern int MSCORE; + extern int mycnt1, mycnt2; + extern short ahead; + extern struct leaf rootnode; +Index: gnushogi-1.4.2/gnushogi/rawdsp.c +=================================================================== +--- gnushogi-1.4.2.orig/gnushogi/rawdsp.c ++++ gnushogi-1.4.2/gnushogi/rawdsp.c +@@ -44,11 +44,6 @@ + #include "gnushogi.h" + #include "rawdsp.h" + +-unsigned short MV[MAXDEPTH]; +-int MSCORE; +- +-int mycnt1, mycnt2; +-char *DRAW; + extern char *InPtr; + extern short pscore[]; + |