ruby-changes:55934
From: Nobuyoshi <ko1@a...>
Date: Fri, 31 May 2019 14:36:54 +0900 (JST)
Subject: [ruby-changes:55934] Nobuyoshi Nakada: 83f9183a7e (trunk): Also GCC 9 provides -Waddress-of-packed-member
https://git.ruby-lang.org/ruby.git/commit/?id=83f9183a7e From 83f9183a7e549b0d7e6b68e298d57744ddb4d97f Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Fri, 31 May 2019 14:05:01 +0900 Subject: Also GCC 9 provides -Waddress-of-packed-member 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 *); https://github.com/ruby/ruby/blob/trunk/eval_intern.h#L158 #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); \ -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/