core: fix build errors with gcc 12

Fixes #4828
This commit is contained in:
Christian Prochaska 2023-05-02 08:56:16 +02:00 committed by Christian Helmuth
parent 97e3572844
commit 98bf2dadb8
2 changed files with 1 additions and 3 deletions

View File

@ -21,7 +21,7 @@
do { \
Genode::error("Unexpected call of '", __FUNCTION__, "' " \
"(", __FILE__, ":", __LINE__, ")"); \
for (;;); throw 0UL; \
for (;;); \
} while (false)
#endif /* _CORE__INCLUDE__ASSERTION_H_ */

View File

@ -81,8 +81,6 @@ class Core::Core_env : public Env_deprecated, Noncopyable
_pd_session.init_cap_and_ram_accounts();
}
~Core_env() { parent()->exit(0); }
Rpc_entrypoint &entrypoint() { return _entrypoint; }
Ram_allocator &ram_allocator() { return _synced_ram_allocator; }
Region_map &local_rm() { return _region_map; }