Skip to content

Commit

Permalink
Remove unused lambda capture
Browse files Browse the repository at this point in the history
The unused capture breaks the build when compiling with clang++
>= 5.0.1.
  • Loading branch information
karkhaz committed Feb 14, 2018
1 parent 9620802 commit fbd54df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/goto-programs/remove_virtual_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,8 @@ void remove_virtual_functionst::get_functions(
std::sort(
functions.begin(),
functions.end(),
[&root_function](const dispatch_table_entryt &a, dispatch_table_entryt &b) {
[](const dispatch_table_entryt &a, dispatch_table_entryt &b)
{
if(
has_prefix(
id2string(a.symbol_expr.get_identifier()), "java::java.lang.Object"))
Expand Down

0 comments on commit fbd54df

Please sign in to comment.