File: gcc10.patch

package info (click to toggle)
gamazons 0.83-13
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,392 kB
  • sloc: ansic: 5,199; sh: 673; makefile: 109
file content (53 lines) | stat: -rw-r--r-- 936 bytes parent folder | download | duplicates (4)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Author: Reiner Herrmann <reiner@reiner-h.de>
Description: Fix FTBFS with GCC 10
Bug-Debian: https://bugs.debian.org/957249

--- a/src/amazons.h
+++ b/src/amazons.h
@@ -75,7 +75,7 @@
 
 typedef struct state_s state;
 typedef struct state_t state_t;
-state_t **tt;
+extern state_t **tt;
 
 //Collection of all game states
 struct game_states 
@@ -126,13 +126,13 @@
 };
 
 /* intersting statistic globals */
-int tt_overwrite;
-int tt_stores;
+extern int tt_overwrite;
+extern int tt_stores;
 
-int tt_updates;
-int tt_lookups;
-int tt_lookup_finds;
-int heval_calls;
+extern int tt_updates;
+extern int tt_lookups;
+extern int tt_lookup_finds;
+extern int heval_calls;
 
 
 
--- a/src/main.c
+++ b/src/main.c
@@ -23,6 +23,15 @@
 Board *board;
 GtkWidget *main_window;
 
+state_t **tt;
+int tt_overwrite;
+int tt_stores;
+
+int tt_updates;
+int tt_lookups;
+int tt_lookup_finds;
+int heval_calls;
+
 
 int main (int argc, char *argv[])
 {