From 000a2c19b43afb60559cbf63b71446f6c908505a Mon Sep 17 00:00:00 2001 From: Sam James Date: Thu, 31 Mar 2022 07:42:12 +0100 Subject: [PATCH] librc: mark stringlist functions as warn_unused_result Signed-off-by: Sam James --- src/librc/rc.h.in | 2 ++ 1 file changed, 2 insertions(+) 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 *);