From 384ffef6434d3e8809abd3b5edc848db0333ba24 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 30 Jan 2016 14:20:56 -0800 Subject: [PATCH] Pacify GCC on extern decls * src/unexelf.c (bss_sbrk_did_unexec): Move decl to top level to pacify recent GCC (Bug#22086). --- src/unexelf.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.39.2