summaryrefslogtreecommitdiff
path: root/eval_intern.h
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-05-31 14:05:01 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-05-31 14:05:01 +0900
commit83f9183a7e549b0d7e6b68e298d57744ddb4d97f (patch)
treeabf453216c42cdc864da980b0e2c7357fd8bb541 /eval_intern.h
parentd2f663d6f185f62ef019434caf9bd6afd63849d4 (diff)
Also GCC 9 provides -Waddress-of-packed-member
Diffstat (limited to 'eval_intern.h')
-rw-r--r--eval_intern.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval_intern.h b/eval_intern.h
index f4a48d8..ad74408 100644
--- a/eval_intern.h
+++ b/eval_intern.h
@@ -158,7 +158,7 @@ LONG WINAPI rb_w32_stack_overflow_handler(struct _EXCEPTION_POINTERS *);
#endif
#if defined(USE_UNALIGNED_MEMBER_ACCESS) && USE_UNALIGNED_MEMBER_ACCESS && \
- defined(__clang__)
+ (defined(__clang__) || GCC_VERSION_SINCE(9, 0, 0))
# define UNALIGNED_MEMBER_ACCESS(expr) __extension__({ \
COMPILER_WARNING_PUSH; \
COMPILER_WARNING_IGNORED(-Waddress-of-packed-member); \