| 1 |
From ed1d00e4c005ecc20f298630cce7635d88f5b669 Mon Sep 17 00:00:00 2001 |
| 2 |
From: Colin Watson <[email protected]> |
| 3 |
Date: Fri, 17 Apr 2020 20:24:30 +0100 |
| 4 |
Subject: Fix build with gcc -fno-common |
| 5 |
|
| 6 |
Bug-Debian: https://bugs.debian.org/957185 |
| 7 |
Forwarded: no |
| 8 |
Last-Update: 2020-04-17 |
| 9 |
|
| 10 |
Patch-Name: gcc-no-common.patch |
| 11 |
--- |
| 12 |
objc.c | 6 +++--- |
| 13 |
ocaml.c | 16 ++++++++-------- |
| 14 |
2 files changed, 11 insertions(+), 11 deletions(-) |
| 15 |
|
| 16 |
diff --git a/objc.c b/objc.c |
| 17 |
index 2a5de58ab..a5811ec59 100644 |
| 18 |
--- a/objc.c |
| 19 |
+++ b/objc.c |
| 20 |
@@ -432,16 +432,16 @@ typedef void (*parseNext) (vString * const ident, objcToken what); |
| 21 |
/********** Helpers */ |
| 22 |
/* This variable hold the 'parser' which is going to |
| 23 |
* handle the next token */ |
| 24 |
-parseNext toDoNext; |
| 25 |
+static parseNext toDoNext; |
| 26 |
|
| 27 |
/* Special variable used by parser eater to |
| 28 |
* determine which action to put after their |
| 29 |
* job is finished. */ |
| 30 |
-parseNext comeAfter; |
| 31 |
+static parseNext comeAfter; |
| 32 |
|
| 33 |
/* Used by some parsers detecting certain token |
| 34 |
* to revert to previous parser. */ |
| 35 |
-parseNext fallback; |
| 36 |
+static parseNext fallback; |
| 37 |
|
| 38 |
|
| 39 |
/********** Grammar */ |
| 40 |
diff --git a/ocaml.c b/ocaml.c |
| 41 |
index 104a77706..235862fd3 100644 |
| 42 |
--- a/ocaml.c |
| 43 |
+++ b/ocaml.c |
| 44 |
@@ -514,26 +514,26 @@ typedef void (*parseNext) (vString * const ident, ocaToken what); |
| 45 |
/********** Helpers */ |
| 46 |
/* This variable hold the 'parser' which is going to |
| 47 |
* handle the next token */ |
| 48 |
-parseNext toDoNext; |
| 49 |
+static parseNext toDoNext; |
| 50 |
|
| 51 |
/* Special variable used by parser eater to |
| 52 |
* determine which action to put after their |
| 53 |
* job is finished. */ |
| 54 |
-parseNext comeAfter; |
| 55 |
+static parseNext comeAfter; |
| 56 |
|
| 57 |
/* If a token put an end to current delcaration/ |
| 58 |
* statement */ |
| 59 |
-ocaToken terminatingToken; |
| 60 |
+static ocaToken terminatingToken; |
| 61 |
|
| 62 |
/* Token to be searched by the different |
| 63 |
* parser eater. */ |
| 64 |
-ocaToken waitedToken; |
| 65 |
+static ocaToken waitedToken; |
| 66 |
|
| 67 |
/* name of the last class, used for |
| 68 |
* context stacking. */ |
| 69 |
-vString *lastClass; |
| 70 |
+static vString *lastClass; |
| 71 |
|
| 72 |
-vString *voidName; |
| 73 |
+static vString *voidName; |
| 74 |
|
| 75 |
typedef enum _sContextKind { |
| 76 |
ContextStrong, |
| 77 |
@@ -559,9 +559,9 @@ typedef struct _sOcamlContext { |
| 78 |
|
| 79 |
/* context stack, can be used to output scope information |
| 80 |
* into the tag file. */ |
| 81 |
-ocamlContext stack[OCAML_MAX_STACK_SIZE]; |
| 82 |
+static ocamlContext stack[OCAML_MAX_STACK_SIZE]; |
| 83 |
/* current position in the tag */ |
| 84 |
-int stackIndex; |
| 85 |
+static int stackIndex; |
| 86 |
|
| 87 |
/* special function, often recalled, so putting it here */ |
| 88 |
static void globalScope (vString * const ident, ocaToken what); |