mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
util: Umark virBufferCheckErrorInternal as ATTRIBUTE_RETURN_CHECK
The function is useful even without using the return value. And if needed, the return value can be obtained by other calls as well. The potential for clean-up can be seen in the following patch. Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
0ceec53fc4
commit
7addfa195b
@ -58,7 +58,7 @@ int virBufferCheckErrorInternal(const virBuffer *buf,
|
||||
const char *filename,
|
||||
const char *funcname,
|
||||
size_t linenr)
|
||||
ATTRIBUTE_RETURN_CHECK ATTRIBUTE_NONNULL(1);
|
||||
ATTRIBUTE_NONNULL(1);
|
||||
/**
|
||||
* virBufferCheckError
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user