mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-03 04:26:45 +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,7 +111,7 @@ Vm_session_component::Vm_session_component(Rpc_entrypoint &ds_ep,
|
|||||||
_sliced_heap(_constrained_md_ram_alloc, region_map),
|
_sliced_heap(_constrained_md_ram_alloc, region_map),
|
||||||
_region_map(region_map),
|
_region_map(region_map),
|
||||||
_table(*construct_at<Board::Vm_page_table>(_alloc_table())),
|
_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);}))),
|
return (addr_t)cma().phys_addr(virt);}))),
|
||||||
_id({(unsigned)alloc().alloc(), cma().phys_addr(&_table)})
|
_id({(unsigned)alloc().alloc(), cma().phys_addr(&_table)})
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user