mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-13 04:38:20 +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:
@ -51,9 +51,9 @@ class Input::Session_component : public Genode::Rpc_object<Input::Session>
|
||||
* \noapi
|
||||
* \deprecated
|
||||
*/
|
||||
Session_component()
|
||||
: _ds(*Genode::env()->ram_session(),
|
||||
*Genode::env()->rm_session(),
|
||||
Session_component() __attribute__((deprecated))
|
||||
: _ds(*Genode::env_deprecated()->ram_session(),
|
||||
*Genode::env_deprecated()->rm_session(),
|
||||
Event_queue::QUEUE_SIZE*sizeof(Input::Event))
|
||||
{ }
|
||||
|
||||
|
Reference in New Issue
Block a user