Displaying 2 results from an estimated 2 matches for "virdomainpciaddressasstring".
2018 Apr 27
0
Re: [libvirt] ignore_value
...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/domain_addr.c:
char *
virDomainPCIAddressAsString(virPCIDeviceAddressPtr addr)
{
char *str;
ignore_value(virAsprintf(&str, "%.4x:%.2x:%.2x.%.1x",
addr->domain,
addr->bus,
addr->slot,
addr->function)...
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!