]> git.eshelyaron.com Git - emacs.git/commitdiff
Work around GCC bug with function attributes
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 22 May 2018 20:05:19 +0000 (13:05 -0700)
committerPaul 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

index d959c55350a50dbcfed8141b2c919a12b116acdf..4186347440ca522c849d43c9511ff92ca89e07fc 100644 (file)
@@ -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);