mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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.
|
* Constructor and destructor.
|
||||||
*/
|
*/
|
||||||
GHashTable *virHashNew(virHashDataFree dataFree);
|
GHashTable *virHashNew(virHashDataFree dataFree) G_GNUC_WARN_UNUSED_RESULT;
|
||||||
virHashAtomic *virHashAtomicNew(virHashDataFree dataFree);
|
virHashAtomic *virHashAtomicNew(virHashDataFree dataFree);
|
||||||
void virHashFree(GHashTable *table);
|
void virHashFree(GHashTable *table);
|
||||||
ssize_t virHashSize(GHashTable *table);
|
ssize_t virHashSize(GHashTable *table);
|
||||||
|
Loading…
Reference in New Issue
Block a user