mirror of
https://github.com/genodelabs/genode.git
synced 2025-05-03 01:02:56 +00:00
Remove redundant calls to exec_static_constructors()
This commit is contained in:
parent
501d82b99f
commit
23f4acfabc
@ -196,8 +196,5 @@ struct Cpu_sampler::Main : Thread_list_change_handler
|
|||||||
|
|
||||||
void Component::construct(Genode::Env &env)
|
void Component::construct(Genode::Env &env)
|
||||||
{
|
{
|
||||||
/* XXX execute constructors of global statics (uses shared objects) */
|
|
||||||
env.exec_static_constructors();
|
|
||||||
|
|
||||||
static Cpu_sampler::Main inst(env);
|
static Cpu_sampler::Main inst(env);
|
||||||
}
|
}
|
||||||
|
@ -205,14 +205,6 @@ struct Test::Main
|
|||||||
|
|
||||||
void Component::construct(Genode::Env &env)
|
void Component::construct(Genode::Env &env)
|
||||||
{
|
{
|
||||||
/*
|
|
||||||
* The indirect dependency from libc (via ttf_font) introduces a global
|
|
||||||
* constructor in the binary. (typeinfo for 'Genode::Exception').
|
|
||||||
*
|
|
||||||
* XXX Why is this ctors entry generated?
|
|
||||||
*/
|
|
||||||
env.exec_static_constructors();
|
|
||||||
|
|
||||||
static Test::Main main(env);
|
static Test::Main main(env);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user