mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-20 17:52:52 +00:00
base: fix clang warning for void cast of retval
This path fixes a void cast used to silence unused return value warning. Its a common pattern to use void cast to do that. The code uses void * cast instead. It works for GCC, but clang complains about this. Issue #3938
This commit is contained in:
parent
81a49bffee
commit
8d6ca9556f
@ -104,7 +104,7 @@ extern "C" void init_main_thread()
|
||||
* Explicitly setup program environment at this point to ensure that its
|
||||
* destructor won't be registered for the atexit routine.
|
||||
*/
|
||||
(void*)env_deprecated();
|
||||
(void)env_deprecated();
|
||||
init_log(*env_deprecated()->parent());
|
||||
|
||||
/* create a thread object for the main thread */
|
||||
|
Loading…
x
Reference in New Issue
Block a user