summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tool/transform_mjit_header.rb3
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|