>From 5b335e8ee195733b067562d9c4199829b08e8b49 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 22 May 2018 13:05:19 -0700 Subject: [PATCH] Work around GCC bug with function attributes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/alloc.c b/src/alloc.c index d959c55350..4186347440 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); -- 2.17.0