Skip to content

Commit 7eff47c

Browse files
committed
fix unused variable warning
1 parent c4e7094 commit 7eff47c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/AST/AbsoluteCompilationDatabase.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,8 @@ AbsoluteCompilationDatabase(
234234
continue;
235235

236236
std::size_t i = AllCommands_.size();
237-
auto result = IndexByFile_.try_emplace(cmd.Filename, i);
237+
[[maybe_unused]] auto result =
238+
IndexByFile_.try_emplace(cmd.Filename, i);
238239
AllCommands_.emplace_back(std::move(cmd));
239240
Assert(result.second);
240241
}

0 commit comments

Comments
 (0)