e143084b04
The recent change of the TRACE session interface triggered the following warning: /home/no/src/genode/repos/base/include/base/ipc.h:79:4: warning: ‘ret’ may be used uninitialized in this function [-Wmaybe-uninitialized] *reinterpret_cast<T *>(&_sndbuf[_write_offset]) = value; ^ In file included from /home/no/src/genode/repos/base/src/core/include/trace/session_component.h:19:0, from /home/no/src/genode/repos/base/src/core/trace_session_component.cc:15: /home/no/src/genode/repos/base/include/base/rpc_server.h:132:42: note: ‘ret’ was declared here typename This_rpc_function::Ret_type ret; The warning occurs for basic return types (like size_t), which are indeed not initialized. The variable gets its value assigned by the corresponding 'call_member' overload, to which the variable is passed as reference. But the compiler apparently is not able to detect this assignment. Declaring 'ret' with a C++11-style default initializer fixes the warning. |
||
---|---|---|
.. | ||
32bit/base | ||
64bit/base | ||
arm | ||
arm_v5/cpu | ||
arm_v6/cpu | ||
arm_v7/cpu | ||
base | ||
cap_session | ||
cpu | ||
cpu_session | ||
dataspace | ||
drivers | ||
io_mem_session | ||
io_port_session | ||
irq_session | ||
log_session | ||
pager | ||
parent | ||
pd_session | ||
platform | ||
platform_exynos5 | ||
ram_session | ||
rm_session | ||
rom_session | ||
root | ||
session | ||
signal_session | ||
thread | ||
trace_session | ||
util | ||
x86/cpu | ||
x86_32/cpu | ||
x86_64/cpu | ||
README |
This directory contains include files of interfaces that are exported by components to be used by other components. Each subdirectory corresponds to the component exporting the interface.