diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2020-03-22 15:49:47 -0700 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2020-03-22 15:49:55 -0700 |
commit | 3cf3427c991eb621cb670e24331a239cf9f010e4 (patch) | |
tree | a907bc19e4d4b5db4e13a237fdf97be19bafe124 /tool | |
parent | a55f670757c1387aa60d999b3882267816ce7b64 (diff) | |
download | ruby-3cf3427c991eb621cb670e24331a239cf9f010e4.tar.gz |
Try asserting no static decl rather than warning
This didn't exist in my machine, but it may exist in some CI
environments.
Diffstat (limited to 'tool')
-rw-r--r-- | tool/transform_mjit_header.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tool/transform_mjit_header.rb b/tool/transform_mjit_header.rb index 669e549ae3..f3ca2c5db0 100644 --- a/tool/transform_mjit_header.rb +++ b/tool/transform_mjit_header.rb @@ -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| |