From: Paul Eggert Date: Sat, 30 Jan 2016 22:20:56 +0000 (-0800) Subject: Pacify GCC on extern decls X-Git-Tag: emacs-26.0.90~2783 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=384ffef6434d3e8809abd3b5edc848db0333ba24;p=emacs.git Pacify GCC on extern decls * src/unexelf.c (bss_sbrk_did_unexec): Move decl to top level to pacify recent GCC (Bug#22086). --- 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) typedef unsigned char byte; +#ifdef HYBRID_MALLOC +extern int bss_sbrk_did_unexec; +#endif + /* **************************************************************** * unexec * @@ -228,7 +232,6 @@ unexec (const char *new_name, const char *old_name) void *new_break; #ifdef HYBRID_MALLOC - extern int bss_sbrk_did_unexec; bss_sbrk_did_unexec = 1; #endif