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:
parent
3f1ef72909
commit
f03146dd70
1 changed files with 2 additions and 1 deletions
|
@ -2584,7 +2584,8 @@ MESSAGE
|
|||
src = src.sub(/\{/) do
|
||||
$& +
|
||||
"\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"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue