diff options
author | Evan Huus <eapache@gmail.com> | 2013-04-25 22:54:36 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2013-04-25 22:54:36 +0000 |
commit | 7d2c6f30004ce23445c268fc8c7035fddac124b4 (patch) | |
tree | 8cfcd2e4b346e13d200c4a8b139ccb1954162f88 /epan/wmem/wmem_strbuf.h | |
parent | e8fc503c21177616136520bbd57bef88d99d6cd4 (diff) |
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.h | 9 |
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 |