projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6585a9
)
Pacify GCC on extern decls
author
Paul Eggert
<eggert@cs.ucla.edu>
Sat, 30 Jan 2016 22:20:56 +0000
(14:20 -0800)
committer
Paul 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
patch
|
blob
|
history
diff --git
a/src/unexelf.c
b/src/unexelf.c
index 32aa1b281da320c9fed83711de1ee3a7d6b6b852..3dc0456d9b6bd290815f481a712cf83db42440fd 100644
(file)
--- 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