aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-07-30 14:48:45 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-07-30 14:48:45 +0000
commitf6af68d95fd52d42571b941cb4ae2d610f9811b9 (patch)
tree8c1d084130a3fa64a9048221777828b39c2ed0eb /configure.in
parentae878bdd9f070059f1cf3b2c2fbeb9515d99ef1b (diff)
downloadruby-f6af68d95fd52d42571b941cb4ae2d610f9811b9.tar.gz
UNALIGNED_MEMBER_ACCESS
* eval_intern.h (UNALIGNED_MEMBER_ACCESS): suppress address-of-packed-member warnings by clang 4.0. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index f8a7ea99e4..53cdbb539a 100644
--- a/configure.in
+++ b/configure.in
@@ -1653,6 +1653,7 @@ AC_CACHE_CHECK(packed struct attribute, rb_cv_packed_struct,
done])
AS_IF([test "$rb_cv_packed_struct" != no], [
AC_DEFINE_UNQUOTED([PACKED_STRUCT(x)], [$rb_cv_packed_struct])
+ RUBY_TRY_CFLAGS(-Wno-address-of-packed-member, [AC_DEFINE(USE_UNALIGNED_MEMBER_ACCESS)])
], [
AC_DEFINE_UNQUOTED([PACKED_STRUCT(x)], x)
])