Skip to content

Commit e65c034

Browse files
committed
Fix a clang warning for treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
``` clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated] ```
1 parent 5f5cfd1 commit e65c034

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/lrama/integration_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def exec_command(command)
1212
end
1313

1414
def compiler
15-
ENV['COMPILER'] || "gcc"
15+
ENV['COMPILER'] || "g++"
1616
end
1717

1818
def file_extension
@@ -270,7 +270,7 @@ def generate_object(grammar_file_path, c_path, obj_path, command_args: [])
270270
end
271271

272272
describe "sample files" do
273-
let(:c_path) { Dir.tmpdir + "/test.c" }
273+
let(:c_path) { Dir.tmpdir + "/test#{file_extension}" }
274274
let(:obj_path) { Dir.tmpdir + "/test" }
275275

276276
describe "calc.y" do

0 commit comments

Comments
 (0)