mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-22 15:02:25 +00:00
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:
parent
9b84a8a402
commit
1643d623e4
@ -111,8 +111,8 @@ 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) {
|
||||
return (addr_t)cma().phys_addr(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)})
|
||||
{
|
||||
/* configure managed VM area */
|
||||
|
Loading…
Reference in New Issue
Block a user