mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-17 22:58:26 +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:
@ -33,17 +33,22 @@ class Input::Session_client : public Genode::Rpc_client<Session>
|
||||
|
||||
public:
|
||||
|
||||
explicit Session_client(Genode::Env &env,
|
||||
Session_capability session)
|
||||
Session_client(Genode::Region_map &local_rm, Session_capability session)
|
||||
:
|
||||
Genode::Rpc_client<Session>(session),
|
||||
_event_ds(env.rm(), call<Rpc_dataspace>())
|
||||
_event_ds(local_rm, call<Rpc_dataspace>())
|
||||
{ }
|
||||
|
||||
explicit Session_client(Session_capability session)
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* \deprecated
|
||||
* \noapi
|
||||
*/
|
||||
explicit Session_client(Session_capability session) __attribute__((deprecated))
|
||||
:
|
||||
Genode::Rpc_client<Session>(session),
|
||||
_event_ds(*Genode::env()->rm_session(), call<Rpc_dataspace>())
|
||||
_event_ds(*Genode::env_deprecated()->rm_session(), call<Rpc_dataspace>())
|
||||
{ }
|
||||
|
||||
Genode::Dataspace_capability dataspace() override {
|
||||
|
Reference in New Issue
Block a user