projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02f303d
)
Work around GCC bug with function attributes
author
Paul Eggert
<eggert@cs.ucla.edu>
Tue, 22 May 2018 20:05:19 +0000
(13:05 -0700)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Tue, 22 May 2018 20:05:48 +0000
(13:05 -0700)
* src/alloc.c (PNTR_ADD): Put attributes after ‘static’ and before
returned type. Problem reported by Eli Zaretskii in:
https://lists.gnu.org/r/emacs-devel/2018-05/msg00559.html
src/alloc.c
patch
|
blob
|
history
diff --git
a/src/alloc.c
b/src/alloc.c
index d959c55350a50dbcfed8141b2c919a12b116acdf..4186347440ca522c849d43c9511ff92ca89e07fc 100644
(file)
--- a/
src/alloc.c
+++ b/
src/alloc.c
@@
-513,7
+513,7
@@
pointer_align (void *ptr, int alignment)
#define macro_PNTR_ADD(p, i) ((p) + (i))
-static
char * ATTRIBUTE_NO_SANITIZE_UNDEFINED ATTRIBUTE_UNUSED
+static
ATTRIBUTE_NO_SANITIZE_UNDEFINED ATTRIBUTE_UNUSED char *
PNTR_ADD (char *p, EMACS_UINT i)
{
return macro_PNTR_ADD (p, i);