Displaying 2 results from an estimated 2 matches for "attribute_return_check".
2018 Apr 27
0
Re: [libvirt] ignore_value
...to do function return value processing,but I
> can’t understand about it,can you give me some tips?thanks very much!
Is your question about what ignore_value() does? It exists solely to
shut up compiler warnings about anything declared with
__attribute__((warn_unused_result)) (under our macro
ATTRIBUTE_RETURN_CHECK), in cases where we are intentionally ignoring
the return value (rather than assigning the value to a variable or using
the function call in an 'if' conditional, the way the compiler warning
would want us to do it).
Many of the uses in libvirt code base are things like this in
src/conf/dom...
2018 Apr 27
3
[libvirt] ignore_value
Hi,using ignore_value in libvirt source code
to do function return value processing,but I
can’t understand about it,can you give me some tips?thanks very much!