From: Paul Eggert Date: Tue, 22 May 2018 20:05:19 +0000 (-0700) Subject: Work around GCC bug with function attributes X-Git-Tag: emacs-27.0.90~5005 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e18600dfbd31316f30cf98f6d7a90aad33bc1981;p=emacs.git Work around GCC bug with function attributes * 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 --- diff --git a/src/alloc.c b/src/alloc.c index d959c55350a..4186347440c 100644 --- 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);