Skip to content

Commit c708cc3

Browse files
committed
Silence annoying declaration-after-statement warnings
* It leads to less readable code and AFAIK every recent-ish platform supports it.
1 parent 9607b17 commit c708cc3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/ruby/optional/capi/spec_helper.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ def compile_extension(name)
7676
$ruby = ENV.values_at('RUBY_EXE', 'RUBY_FLAGS').join(' ')
7777
# MRI magic to consider building non-bundled extensions
7878
$extout = nil
79+
$warnflags << ' -Wno-declaration-after-statement'
7980
create_makefile(#{ext.inspect})
8081
RUBY
8182
output = ruby_exe("extconf.rb")

0 commit comments

Comments
 (0)