base-hw: Fix warning about unused lambda capture

The lambda function passed to Board::Vm_page_table_array does not
actually use "this" for anything. GCC does not warn about this, but
clang does. Remove the extra capture to make clang happy.

Issue #3938
This commit is contained in:
Piotr Tworek 2020-10-28 00:00:09 +01:00 committed by Christian Helmuth
parent 9b84a8a402
commit 1643d623e4

View File

@ -111,7 +111,7 @@ Vm_session_component::Vm_session_component(Rpc_entrypoint &ds_ep,
_sliced_heap(_constrained_md_ram_alloc, region_map),
_region_map(region_map),
_table(*construct_at<Board::Vm_page_table>(_alloc_table())),
_table_array(*(new (cma()) Board::Vm_page_table_array([this] (void * virt) {
_table_array(*(new (cma()) Board::Vm_page_table_array([] (void * virt) {
return (addr_t)cma().phys_addr(virt);}))),
_id({(unsigned)alloc().alloc(), cma().phys_addr(&_table)})
{