diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-22 15:09:11 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-22 15:09:11 +0000 |
commit | 7f2c371fbaeb80dba3764ecf83624576eb824790 (patch) | |
tree | 8c6ceb0302e1de0ad3b6cc2c0cc5ab3d0ee551b3 /Makefile.in | |
parent | 095e1f8eafda55cf08688f913e0e72ebfe418846 (diff) |
Makefile.in: suppress warnings
* Makefile.in (enc/jis/props.h): suppress `pointer-to-int-cast`
warnings by using `offsetof`.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in index b73e3f907d..3fdbb89d63 100644 --- a/Makefile.in +++ b/Makefile.in @@ -335,7 +335,8 @@ enc/jis/props.h: enc/jis/props.kwd $(CP) $(?:.kwd=.h.blt) $@; \ else \ set -x; \ - gperf $(JIS_PROPS_OPTIONS) --output-file=$@ $? && \ + gperf $(JIS_PROPS_OPTIONS) $? | \ + sed 's/(int)(long)&((\([a-zA-Z_0-9 ]*[a-zA-Z_0-9]\) *\*)0)->\([a-zA-Z0-9_]*\),/(char)offsetof(\1, \2),/g' > $@ && \ $(CP) $? $(?:.kwd=.src) && \ $(CP) $@ $(?:.kwd=.h.blt); \ fi |