Skip to content

Commit

Permalink
Add unused to lock
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Sobkiewicz <tomasz.sobkiewicz@swmansion.com>
  • Loading branch information
TheSobkiewicz committed Jan 8, 2025
1 parent 10f6c3f commit e832366
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libAtomVM/ets.c
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,8 @@ EtsErrorCode ets_drop_table(term name_or_ref, term *ret, Context *ctx)
return EtsPermissionDenied;
}

synclist_wrlock(&ctx->global->ets.ets_tables);
struct ListHead *_ets_tables_list = synclist_wrlock(&ctx->global->ets.ets_tables);
UNUSED(_ets_tables_list);
SMP_UNLOCK(ets_table);
list_remove(&ets_table->head);
ets_table_destroy(ets_table, ctx->global);
Expand Down

0 comments on commit e832366

Please sign in to comment.