Define IOX_DISCARD_RESULT
Defined in File attributes.hpp
Define Documentation
-
IOX_DISCARD_RESULT(expr)
if a function has a return value which you do not want to use then you can wrap the function with that macro. Purpose is to suppress the unused compiler warning by adding an attribute to the return value
- Parameters:
expr – [in] name of the function where the return value is not used.
uint32_t foo(); IOX_DISCARD_RESULT(foo()); // suppress compiler warning for unused return value