diff options
Diffstat (limited to 'src/bytecode.c')
| -rw-r--r-- | src/bytecode.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/bytecode.c b/src/bytecode.c index 7676c8550a4..4940fd5c182 100644 --- a/src/bytecode.c +++ b/src/bytecode.c | |||
| @@ -660,9 +660,12 @@ exec_byte_code (Lisp_Object bytestr, Lisp_Object vector, Lisp_Object maxdepth, | |||
| 660 | the table clearer. */ | 660 | the table clearer. */ |
| 661 | #define LABEL(OP) [OP] = &&insn_ ## OP | 661 | #define LABEL(OP) [OP] = &&insn_ ## OP |
| 662 | 662 | ||
| 663 | #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6) | 663 | #if 4 < __GNUC__ + (6 <= __GNUC_MINOR__) |
| 664 | # pragma GCC diagnostic push | 664 | # pragma GCC diagnostic push |
| 665 | # pragma GCC diagnostic ignored "-Woverride-init" | 665 | # pragma GCC diagnostic ignored "-Woverride-init" |
| 666 | #elif defined __clang__ | ||
| 667 | # pragma GCC diagnostic push | ||
| 668 | # pragma GCC diagnostic ignored "-Winitializer-overrides" | ||
| 666 | #endif | 669 | #endif |
| 667 | 670 | ||
| 668 | /* This is the dispatch table for the threaded interpreter. */ | 671 | /* This is the dispatch table for the threaded interpreter. */ |
| @@ -676,7 +679,7 @@ exec_byte_code (Lisp_Object bytestr, Lisp_Object vector, Lisp_Object maxdepth, | |||
| 676 | #undef DEFINE | 679 | #undef DEFINE |
| 677 | }; | 680 | }; |
| 678 | 681 | ||
| 679 | #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6) | 682 | #if 4 < __GNUC__ + (6 <= __GNUC_MINOR__) || defined __clang__ |
| 680 | # pragma GCC diagnostic pop | 683 | # pragma GCC diagnostic pop |
| 681 | #endif | 684 | #endif |
| 682 | 685 | ||