emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master e18600d: Work around GCC bug with function attribut


From: Paul Eggert
Subject: [Emacs-diffs] master e18600d: Work around GCC bug with function attributes
Date: Tue, 22 May 2018 16:05:52 -0400 (EDT)

branch: master
commit e18600dfbd31316f30cf98f6d7a90aad33bc1981
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    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
---
 src/alloc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/alloc.c b/src/alloc.c
index d959c55..4186347 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);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]