mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 14:57:42 +00:00
virHashNew: Ensure return value is used
Declare the function with G_GNUC_WARN_UNUSED_RESULT as we always want to use the returned value. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Tim Wiederhake <twiederh@redhat.com>
This commit is contained in:
parent
cd6ec91705
commit
23fbc0074e
@ -50,7 +50,7 @@ typedef int (*virHashSearcher) (const void *payload, const char *name,
|
||||
/*
|
||||
* Constructor and destructor.
|
||||
*/
|
||||
GHashTable *virHashNew(virHashDataFree dataFree);
|
||||
GHashTable *virHashNew(virHashDataFree dataFree) G_GNUC_WARN_UNUSED_RESULT;
|
||||
virHashAtomic *virHashAtomicNew(virHashDataFree dataFree);
|
||||
void virHashFree(GHashTable *table);
|
||||
ssize_t virHashSize(GHashTable *table);
|
||||
|
Loading…
Reference in New Issue
Block a user