diff options
author | Sam James <sam@gentoo.org> | 2022-03-31 07:42:12 +0100 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2022-05-08 14:56:26 -0500 |
commit | 000a2c19b43afb60559cbf63b71446f6c908505a (patch) | |
tree | 2d92d7cc17041c32bcf7943e18fc0066b1f507ea /src | |
parent | 17de4e5dfdf614332091b856bc05837b2e204a5a (diff) |
librc: mark stringlist functions as warn_unused_result
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/librc/rc.h.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librc/rc.h.in b/src/librc/rc.h.in index c5146fb6..0727c12e 100644 --- a/src/librc/rc.h.in +++ b/src/librc/rc.h.in @@ -537,6 +537,7 @@ void rc_stringlist_free(RC_STRINGLIST *); #ifdef HAVE_MALLOC_EXTENDED_ATTRIBUTE __attribute__ ((malloc (rc_stringlist_free, 1))) #endif +__attribute__ ((warn_unused_result)) RC_STRINGLIST *rc_stringlist_new(void); /*! 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 separator * @return new list */ +__attribute__ ((warn_unused_result)) RC_STRINGLIST *rc_stringlist_split(const char *, const char *); |