Skip to content

Commit

Permalink
Fix a clang warning for treating 'c' input as 'c++' when in C++ mode,…
Browse files Browse the repository at this point in the history
… this behavior is deprecated

```
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
```
  • Loading branch information
ydah committed Aug 9, 2024
1 parent 5f5cfd1 commit e65c034
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/lrama/integration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def exec_command(command)
end

def compiler
ENV['COMPILER'] || "gcc"
ENV['COMPILER'] || "g++"
end

def file_extension
Expand Down Expand Up @@ -270,7 +270,7 @@ def generate_object(grammar_file_path, c_path, obj_path, command_args: [])
end

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

describe "calc.y" do
Expand Down

0 comments on commit e65c034

Please sign in to comment.