Skip to content

Commit a0eb12a

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 a0eb12a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/lrama/integration_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -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)