mirror of https://gitee.com/openkylin/libvirt.git
util: Drop G_GNUC_WARN_UNUSED_RESULT from reallocation APIs
Our reallocation APIs already abort on OOM and thus can only return 0. There's no need to force callers to check the result. Signed-off-by: Jiri Denemark <jdenemar@redhat.com> Reviewed-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
parent
b8c919b5b4
commit
be664a41f9
|
@ -35,11 +35,11 @@
|
|||
|
||||
/* Don't call these directly - use the macros below */
|
||||
int virReallocN(void *ptrptr, size_t size, size_t count)
|
||||
G_GNUC_WARN_UNUSED_RESULT ATTRIBUTE_NONNULL(1);
|
||||
ATTRIBUTE_NONNULL(1);
|
||||
int virExpandN(void *ptrptr, size_t size, size_t *count, size_t add)
|
||||
G_GNUC_WARN_UNUSED_RESULT ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(3);
|
||||
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(3);
|
||||
int virResizeN(void *ptrptr, size_t size, size_t *alloc, size_t count, size_t desired)
|
||||
G_GNUC_WARN_UNUSED_RESULT ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(3);
|
||||
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(3);
|
||||
void virShrinkN(void *ptrptr, size_t size, size_t *count, size_t toremove)
|
||||
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(3);
|
||||
int virInsertElementsN(void *ptrptr, size_t size, size_t at, size_t *countptr,
|
||||
|
|
Loading…
Reference in New Issue