1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

int (*)(void) is incompatible with void*

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
shyouhei 2018-01-02 06:41:42 +00:00
parent 3f1ef72909
commit f03146dd70

View file

@ -2584,7 +2584,8 @@ MESSAGE
src = src.sub(/\{/) do src = src.sub(/\{/) do
$& + $& +
"\n if (argc > 1000000) {\n" + "\n if (argc > 1000000) {\n" +
refs.map {|n|" printf(\"%p\", &#{n});\n"}.join("") + refs.map {|n|" int (* volatile #{n}p)(void)=(int (*)(void))&#{n};\n"}.join("") +
refs.map {|n|" printf(\"%d\", (*#{n}p)());\n"}.join("") +
" }\n" " }\n"
end end
end end