Also GCC 9 provides -Waddress-of-packed-member
This commit is contained in:
parent
d2f663d6f1
commit
83f9183a7e
@ -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); \
|
||||
|
Loading…
x
Reference in New Issue
Block a user