Skip to content

Commit

Permalink
Also GCC 9 provides -Waddress-of-packed-member
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed May 31, 2019
1 parent d2f663d commit 83f9183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eval_intern.h
Expand Up @@ -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); \
Expand Down

0 comments on commit 83f9183

Please sign in to comment.