summaryrefslogtreecommitdiff
path: root/epan/wmem/wmem_strbuf.h
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2013-04-25 22:54:36 +0000
committerEvan Huus <eapache@gmail.com>2013-04-25 22:54:36 +0000
commit7d2c6f30004ce23445c268fc8c7035fddac124b4 (patch)
tree8cfcd2e4b346e13d200c4a8b139ccb1954162f88 /epan/wmem/wmem_strbuf.h
parente8fc503c21177616136520bbd57bef88d99d6cd4 (diff)
downloadwireshark-7d2c6f30004ce23445c268fc8c7035fddac124b4.tar.gz
Annotate wmem functions for better compiler warnings and optimization.
svn path=/trunk/; revision=49041
Diffstat (limited to 'epan/wmem/wmem_strbuf.h')
-rw-r--r--epan/wmem/wmem_strbuf.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/epan/wmem/wmem_strbuf.h b/epan/wmem/wmem_strbuf.h
index ba1e0791f0..34bb73d1e7 100644
--- a/epan/wmem/wmem_strbuf.h
+++ b/epan/wmem/wmem_strbuf.h
@@ -42,11 +42,13 @@ typedef struct _wmem_strbuf_t wmem_strbuf_t;
WS_DLL_PUBLIC
wmem_strbuf_t *
wmem_strbuf_sized_new(wmem_allocator_t *allocator,
- gsize alloc_len, gsize max_len);
+ gsize alloc_len, gsize max_len)
+G_GNUC_MALLOC;
WS_DLL_PUBLIC
wmem_strbuf_t *
-wmem_strbuf_new(wmem_allocator_t *allocator, const gchar *str);
+wmem_strbuf_new(wmem_allocator_t *allocator, const gchar *str)
+G_GNUC_MALLOC;
WS_DLL_PUBLIC
void
@@ -54,7 +56,8 @@ wmem_strbuf_append(wmem_strbuf_t *strbuf, const gchar *str);
WS_DLL_PUBLIC
void
-wmem_strbuf_append_printf(wmem_strbuf_t *strbuf, const gchar *format, ...);
+wmem_strbuf_append_printf(wmem_strbuf_t *strbuf, const gchar *format, ...)
+G_GNUC_PRINTF(2, 3);
WS_DLL_PUBLIC
void