summaryrefslogtreecommitdiff
path: root/ext/io/console/depend
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-13 01:59:58 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-13 01:59:58 +0000
commitb031b3874b441ff6be1f86388e37d17b40cd7b10 (patch)
tree6ac22ccf42587ad7050d6660a2b7087a80050b64 /ext/io/console/depend
parent37055f9da04ad4d8f8d2b303fbf0c947e4661868 (diff)
win32_vk.inc: suppress warnings
* ext/io/console/depend (win32_vk.inc): use offsetof() to suppress warnings against cast from pointer to integer of different size. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/io/console/depend')
-rw-r--r--ext/io/console/depend8
1 files changed, 5 insertions, 3 deletions
diff --git a/ext/io/console/depend b/ext/io/console/depend
index 85bc81f004e..dac551d04a0 100644
--- a/ext/io/console/depend
+++ b/ext/io/console/depend
@@ -7,11 +7,13 @@ $(OBJS): $(HDRS) $(ruby_headers) \
win32_vk.inc: win32_vk.list
.list.inc:
- gperf --ignore-case -E -C -P -p -j1 -i 1 -g -o -t -K ofs -N console_win32_vk -k* --output-file=$(@F) $<
+ gperf --ignore-case -E -C -P -p -j1 -i 1 -g -o -t -K ofs -N console_win32_vk -k* $< \
+ | sed 's/(int)(long)&((\(struct stringpool_t\) *\*)0)->\(stringpool_[a-z0-9]*\)/offsetof(\1, \2)/g' \
+ > $(@F)
-.SUFFIXES: .chksum .list
+.SUFFIXES: .chksum .list .inc
.list.chksum:
@$(RUBY) -I$(top_srcdir)/tool -rchecksum \
-e "Checksum.update(ARGV) {|k|k.copy(k.target) rescue k.make(k.target)}" \
- -- --make=$(MAKE) -I$(srcdir) $(<F) $(@F:.chksum=.inc)
+ -- --make="$(MAKE)" -I$(srcdir) $(<F) $(@F:.chksum=.inc)