librc: mark stringlist functions as warn_unused_result
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
parent
17de4e5dfd
commit
000a2c19b4
@ -537,6 +537,7 @@ void rc_stringlist_free(RC_STRINGLIST *);
|
|||||||
#ifdef HAVE_MALLOC_EXTENDED_ATTRIBUTE
|
#ifdef HAVE_MALLOC_EXTENDED_ATTRIBUTE
|
||||||
__attribute__ ((malloc (rc_stringlist_free, 1)))
|
__attribute__ ((malloc (rc_stringlist_free, 1)))
|
||||||
#endif
|
#endif
|
||||||
|
__attribute__ ((warn_unused_result))
|
||||||
RC_STRINGLIST *rc_stringlist_new(void);
|
RC_STRINGLIST *rc_stringlist_new(void);
|
||||||
|
|
||||||
/*! Duplicate the item, add it to end of the list and return a pointer to it.
|
/*! Duplicate the item, add it to end of the list and return a pointer to it.
|
||||||
@ -568,6 +569,7 @@ RC_STRING *rc_stringlist_find(RC_STRINGLIST *, const char *);
|
|||||||
* @param string to split
|
* @param string to split
|
||||||
* @param separator
|
* @param separator
|
||||||
* @return new list */
|
* @return new list */
|
||||||
|
__attribute__ ((warn_unused_result))
|
||||||
RC_STRINGLIST *rc_stringlist_split(const char *, const char *);
|
RC_STRINGLIST *rc_stringlist_split(const char *, const char *);
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user