]> git.eshelyaron.com Git - emacs.git/commitdiff
Pacify GCC on extern decls
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 30 Jan 2016 22:20:56 +0000 (14:20 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 30 Jan 2016 23:26:07 +0000 (15:26 -0800)
* src/unexelf.c (bss_sbrk_did_unexec): Move decl to top level
to pacify recent GCC (Bug#22086).

src/unexelf.c

index 32aa1b281da320c9fed83711de1ee3a7d6b6b852..3dc0456d9b6bd290815f481a712cf83db42440fd 100644 (file)
@@ -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