mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-08 03:45:24 +00:00
Add compiler helper function to supress type deduction bug.
This commit is contained in:
parent
685add4774
commit
0d3df86674
@ -690,6 +690,10 @@ void Rm_session_component::dissolve(Rm_client *cl)
|
||||
}
|
||||
|
||||
|
||||
static Dataspace_capability _type_deduction_helper(Dataspace_capability cap) {
|
||||
return cap; }
|
||||
|
||||
|
||||
Rm_session_component::Rm_session_component(Rpc_entrypoint *ds_ep,
|
||||
Rpc_entrypoint *thread_ep,
|
||||
Allocator *md_alloc,
|
||||
@ -702,7 +706,7 @@ Rm_session_component::Rm_session_component(Rpc_entrypoint *ds_ep,
|
||||
_md_alloc(md_alloc, ram_quota),
|
||||
_client_slab(&_md_alloc), _ref_slab(&_md_alloc),
|
||||
_map(&_md_alloc), _pager_ep(pager_ep),
|
||||
_ds(this, vm_size), _ds_cap(ds_ep->manage(&_ds))
|
||||
_ds(this, vm_size), _ds_cap(_type_deduction_helper(ds_ep->manage(&_ds)))
|
||||
{
|
||||
/* configure managed VM area */
|
||||
_map.add_range(vm_start, vm_size);
|
||||
|
Loading…
x
Reference in New Issue
Block a user