diff options
| author | Paul Eggert | 2016-01-30 14:20:56 -0800 |
|---|---|---|
| committer | Paul Eggert | 2016-01-30 15:26:07 -0800 |
| commit | 384ffef6434d3e8809abd3b5edc848db0333ba24 (patch) | |
| tree | 1b671ca52a2dd6c5cdb2d6d907347f6a2ab0395c /src | |
| parent | d6585a910ed3e9e0e43c093b5fbfeb6d56b703b4 (diff) | |
| download | emacs-384ffef6434d3e8809abd3b5edc848db0333ba24.tar.gz emacs-384ffef6434d3e8809abd3b5edc848db0333ba24.zip | |
Pacify GCC on extern decls
* src/unexelf.c (bss_sbrk_did_unexec): Move decl to top level
to pacify recent GCC (Bug#22086).
Diffstat (limited to 'src')
| -rw-r--r-- | src/unexelf.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/unexelf.c b/src/unexelf.c index 32aa1b281da..3dc0456d9b6 100644 --- a/src/unexelf.c +++ b/src/unexelf.c | |||
| @@ -211,6 +211,10 @@ entry_address (void *section_h, ptrdiff_t idx, ptrdiff_t entsize) | |||
| 211 | 211 | ||
| 212 | typedef unsigned char byte; | 212 | typedef unsigned char byte; |
| 213 | 213 | ||
| 214 | #ifdef HYBRID_MALLOC | ||
| 215 | extern int bss_sbrk_did_unexec; | ||
| 216 | #endif | ||
| 217 | |||
| 214 | /* **************************************************************** | 218 | /* **************************************************************** |
| 215 | * unexec | 219 | * unexec |
| 216 | * | 220 | * |
| @@ -228,7 +232,6 @@ unexec (const char *new_name, const char *old_name) | |||
| 228 | void *new_break; | 232 | void *new_break; |
| 229 | 233 | ||
| 230 | #ifdef HYBRID_MALLOC | 234 | #ifdef HYBRID_MALLOC |
| 231 | extern int bss_sbrk_did_unexec; | ||
| 232 | bss_sbrk_did_unexec = 1; | 235 | bss_sbrk_did_unexec = 1; |
| 233 | #endif | 236 | #endif |
| 234 | 237 | ||