mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-28 08:11:05 -08:00
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
This commit is contained in:
parent
02f303d75f
commit
e18600dfbd
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue