X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=src%2Favl.h;h=d30be0dd85cc7e5d5918b610da9f8446b08dd623;hb=7e625be7f6413059fd7176785758f22dfface48e;hp=de4c24bbac131e007c9c380bdf297b1dcb2876df;hpb=3e1a333c5749373c0471ad026427e83761fbf4c4;p=netdata.git diff --git a/src/avl.h b/src/avl.h index de4c24bb..d30be0dd 100644 --- a/src/avl.h +++ b/src/avl.h @@ -56,16 +56,16 @@ typedef struct avl_tree_lock { * a is linked directly to the tree, so it has to * be properly allocated by the caller. */ -avl *avl_insert_lock(avl_tree_lock *t, avl *a) __attribute__((returns_nonnull)); -avl *avl_insert(avl_tree *t, avl *a) __attribute__((returns_nonnull)); +avl *avl_insert_lock(avl_tree_lock *t, avl *a) NEVERNULL WARNUNUSED; +avl *avl_insert(avl_tree *t, avl *a) NEVERNULL WARNUNUSED; /* Remove an element a from the AVL tree t * returns a pointer to the removed element * or NULL if an element equal to a is not found * (equal as returned by t->compar()) */ -avl *avl_remove_lock(avl_tree_lock *t, avl *a); -avl *avl_remove(avl_tree *t, avl *a); +avl *avl_remove_lock(avl_tree_lock *t, avl *a) WARNUNUSED; +avl *avl_remove(avl_tree *t, avl *a) WARNUNUSED; /* Find the element into the tree that equal to a * (equal as returned by t->compar())