mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-18 23:28:29 +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:
@ -80,8 +80,8 @@ class Framebuffer::Imx_connection : public Genode::Connection<Imx_session>,
|
||||
*/
|
||||
Imx_connection(unsigned width = 0,
|
||||
unsigned height = 0,
|
||||
Mode::Format format = Mode::INVALID)
|
||||
: Genode::Connection<Imx_session>(_connect(*Genode::env()->parent(),
|
||||
Mode::Format format = Mode::INVALID) __attribute__((deprecated))
|
||||
: Genode::Connection<Imx_session>(_connect(*Genode::env_deprecated()->parent(),
|
||||
width, height, format)),
|
||||
Imx_client(cap()) { }
|
||||
};
|
||||
|
Reference in New Issue
Block a user