Skip to content

Commit 383e479

Browse files
committed
Merge pull request #2463 from Shopify/Alex/cpp-compat
Enable `-Wc++-compat`
1 parent c9822a8 commit 383e479

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ext/rbs_extension/extconf.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@
1111
$srcs = Dir.glob("#{root_dir}/src/**/*.c") +
1212
Dir.glob("#{root_dir}/ext/rbs_extension/*.c")
1313

14-
append_cflags ['-std=gnu99', '-Wimplicit-fallthrough', '-Wunused-result']
14+
append_cflags [
15+
'-std=gnu99',
16+
'-Wimplicit-fallthrough',
17+
'-Wunused-result',
18+
'-Wc++-compat',
19+
]
20+
1521
append_cflags ['-O0', '-g'] if ENV['DEBUG']
1622
if ENV["TEST_NO_C23"]
1723
puts "Adding -Wc2x-extensions to CFLAGS"

0 commit comments

Comments
 (0)