diff options
| author | Paul Eggert | 2018-05-22 13:05:19 -0700 |
|---|---|---|
| committer | Paul Eggert | 2018-05-22 13:05:48 -0700 |
| commit | e18600dfbd31316f30cf98f6d7a90aad33bc1981 (patch) | |
| tree | 5d3f876f860d492274f9a7837ee72ad1a89dbf57 | |
| parent | 02f303d75f876517b7802f787413cbb418203315 (diff) | |
| download | emacs-e18600dfbd31316f30cf98f6d7a90aad33bc1981.tar.gz emacs-e18600dfbd31316f30cf98f6d7a90aad33bc1981.zip | |
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
| -rw-r--r-- | src/alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
| 513 | 513 | ||
| 514 | #define macro_PNTR_ADD(p, i) ((p) + (i)) | 514 | #define macro_PNTR_ADD(p, i) ((p) + (i)) |
| 515 | 515 | ||
| 516 | static char * ATTRIBUTE_NO_SANITIZE_UNDEFINED ATTRIBUTE_UNUSED | 516 | static ATTRIBUTE_NO_SANITIZE_UNDEFINED ATTRIBUTE_UNUSED char * |
| 517 | PNTR_ADD (char *p, EMACS_UINT i) | 517 | PNTR_ADD (char *p, EMACS_UINT i) |
| 518 | { | 518 | { |
| 519 | return macro_PNTR_ADD (p, i); | 519 | return macro_PNTR_ADD (p, i); |