diff options
| author | Paul Eggert | 2017-05-25 00:24:51 -0700 |
|---|---|---|
| committer | Paul Eggert | 2017-05-25 00:25:09 -0700 |
| commit | d7284da858b38db4737f7e1f587c63390bee4328 (patch) | |
| tree | ca4153b3a2b72c2b940ac207173c09c9cc504196 /src | |
| parent | 9ebc2bbe3c1efea79810261533791bdf48a63760 (diff) | |
| download | emacs-d7284da858b38db4737f7e1f587c63390bee4328.tar.gz emacs-d7284da858b38db4737f7e1f587c63390bee4328.zip | |
Port ATTRIBUTE_MAY_ALIAS to recent icc
* src/conf_post.h (ATTRIBUTE_MAY_ALIAS) [__ICC]:
Define to empty. Otherwise, icc (ICC) 17.0.4 20170411 says
“warning #2621: attribute "__may_alias__" does not apply here”
for constructs like ‘struct sockaddr *sa = (whatever);
struct sockaddr_in __attribute__ ((__may_alias__)) *sin
= (struct sockaddr_in *) sa;’.
Diffstat (limited to 'src')
| -rw-r--r-- | src/conf_post.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_post.h b/src/conf_post.h index c05c93b8190..5e1d8457deb 100644 --- a/src/conf_post.h +++ b/src/conf_post.h | |||
| @@ -263,7 +263,7 @@ extern int emacs_setenv_TZ (char const *); | |||
| 263 | #define ATTRIBUTE_CONST _GL_ATTRIBUTE_CONST | 263 | #define ATTRIBUTE_CONST _GL_ATTRIBUTE_CONST |
| 264 | #define ATTRIBUTE_UNUSED _GL_UNUSED | 264 | #define ATTRIBUTE_UNUSED _GL_UNUSED |
| 265 | 265 | ||
| 266 | #if GNUC_PREREQ (3, 3, 0) | 266 | #if GNUC_PREREQ (3, 3, 0) && !defined __ICC |
| 267 | # define ATTRIBUTE_MAY_ALIAS __attribute__ ((__may_alias__)) | 267 | # define ATTRIBUTE_MAY_ALIAS __attribute__ ((__may_alias__)) |
| 268 | #else | 268 | #else |
| 269 | # define ATTRIBUTE_MAY_ALIAS | 269 | # define ATTRIBUTE_MAY_ALIAS |