mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-18 07:08:18 +00:00
Warn about the use of deprecated env() function
This patch enables warnings if one of the deprecate functions that rely in the implicit use of the global Genode::env() accessor are called. For the time being, some places within the base framework continue to rely on the global function while omitting the warning by calling 'env_deprecated' instead of 'env'. Issue #1987
This commit is contained in:
@ -36,9 +36,20 @@ class Block::Session_rpc_object : public Genode::Rpc_object<Session, Session_rpc
|
||||
* for the tx packet stream
|
||||
* \param ep entry point used for packet-stream channel
|
||||
*/
|
||||
Session_rpc_object(Genode::Dataspace_capability tx_ds,
|
||||
Session_rpc_object(Genode::Region_map &local_rm,
|
||||
Genode::Dataspace_capability tx_ds,
|
||||
Genode::Rpc_entrypoint &ep)
|
||||
: _tx(tx_ds, *Genode::env()->rm_session(), ep) { }
|
||||
: _tx(tx_ds, local_rm, ep) { }
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* \deprecated
|
||||
* \noapi
|
||||
*/
|
||||
Session_rpc_object(Genode::Dataspace_capability tx_ds,
|
||||
Genode::Rpc_entrypoint &ep) __attribute__((deprecated))
|
||||
: _tx(tx_ds, *Genode::env_deprecated()->rm_session(), ep) { }
|
||||
|
||||
/**
|
||||
* Return capability to packet-stream channel
|
||||
|
Reference in New Issue
Block a user