summaryrefslogtreecommitdiffstats
path: root/src/libutil/str_util.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-03-05 15:01:31 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-03-05 15:01:31 +0000
commitd708e8979b0e0f16146e067a7b3f59f7c28cb2ba (patch)
tree6a667937819594a24c67c43461d793a0978483b2 /src/libutil/str_util.h
parent5ea57860c64e89d688ed9658db279a164374cbe8 (diff)
downloadrspamd-d708e8979b0e0f16146e067a7b3f59f7c28cb2ba.tar.gz
rspamd-d708e8979b0e0f16146e067a7b3f59f7c28cb2ba.zip
[Minor] Add unused result attribute
Diffstat (limited to 'src/libutil/str_util.h')
-rw-r--r--src/libutil/str_util.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libutil/str_util.h b/src/libutil/str_util.h
index 1a11daca9..0e66d0ed1 100644
--- a/src/libutil/str_util.h
+++ b/src/libutil/str_util.h
@@ -510,7 +510,7 @@ enum rspamd_regexp_escape_flags {
*/
gchar *
rspamd_str_regexp_escape (const gchar *pattern, gsize slen,
- gsize *dst_len, enum rspamd_regexp_escape_flags flags);
+ gsize *dst_len, enum rspamd_regexp_escape_flags flags) G_GNUC_WARN_UNUSED_RESULT;
/**
* Returns copy of src (zero terminated) where all unicode is made valid or replaced
@@ -520,7 +520,8 @@ rspamd_str_regexp_escape (const gchar *pattern, gsize slen,
* @param dstelen
* @return
*/
-gchar *rspamd_str_make_utf_valid (const guchar *src, gsize slen, gsize *dstlen, rspamd_mempool_t *pool);
+gchar *rspamd_str_make_utf_valid (const guchar *src, gsize slen, gsize *dstlen,
+ rspamd_mempool_t *pool) G_GNUC_WARN_UNUSED_RESULT;
/**
* Strips characters in `strip_chars` from start and end of the GString
@@ -535,7 +536,7 @@ gsize rspamd_gstring_strip (GString *s, const gchar *strip_chars);
* @param strip_chars
*/
const gchar *rspamd_string_len_strip (const gchar *in,
- gsize *len, const gchar *strip_chars);
+ gsize *len, const gchar *strip_chars) G_GNUC_WARN_UNUSED_RESULT;
/**
* Returns a NULL terminated list of zero terminated strings based on splitting of