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

Try asserting no static decl rather than warning

This didn't exist in my machine, but it may exist in some CI
environments.
This commit is contained in:
Takashi Kokubun 2020-03-22 15:49:47 -07:00
parent a55f670757
commit 3cf3427c99
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD

View file

@ -279,7 +279,7 @@ while (decl_range = MJITHeader.find_decl(code, stop_pos))
decl[match.begin(0)...match.end(0)] = ''
if decl =~ /\bstatic\b/
transform_logs[:static_inside_extern] << decl_name
abort "#{PROGRAM}: a static decl was found inside external definition #{decl_name.dump}"
end
header.sub!(/(extern|inline) /, ' ')
@ -301,7 +301,6 @@ messages = {
def_to_decl: 'changing definition to declaration',
static_inline_def: 'making external definition static inline',
static_inline_decl: 'making declaration static inline',
static_inside_extern: 'a static decl inside external definition',
skipped: 'SKIPPED to transform',
}
transform_logs.each do |key, decl_names|