commit d708e89: [Minor] Add unused result attribute
Vsevolod Stakhov
vsevolod at highsecure.ru
Fri Mar 5 17:21:06 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-03-05 15:01:31 +0000
URL: https://github.com/rspamd/rspamd/commit/d708e8979b0e0f16146e067a7b3f59f7c28cb2ba
[Minor] Add unused result attribute
---
src/libutil/str_util.h | 7 ++++---
1 file 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
More information about the Commits
mailing list