From dbfd08e6cf2818321abce323995cfaef8ecc6c84 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Tue, 17 May 2011 23:18:58 +0300 Subject: [PATCH] * mu-msg-file: improve header file, add some gcc-attributes --- src/mu-msg-file.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mu-msg-file.h b/src/mu-msg-file.h index 570a2d89..5b7f3b66 100644 --- a/src/mu-msg-file.h +++ b/src/mu-msg-file.h @@ -33,7 +33,8 @@ typedef struct _MuMsgFile MuMsgFile; * @return a new MuMsg, or NULL in case of error */ MuMsgFile *mu_msg_file_new (const char *path, - const char* mdir, GError **err); + const char* mdir, GError **err) + G_GNUC_MALLOC G_GNUC_WARN_UNUSED_RESULT; /** * destroy a MuMsgFile object @@ -58,7 +59,8 @@ void mu_msg_file_destroy (MuMsgFile *self); */ char* mu_msg_file_get_str_field (MuMsgFile *self, MuMsgFieldId msfid, - gboolean *do_free); + gboolean *do_free) + G_GNUC_WARN_UNUSED_RESULT; /** * get a numeric value for this message -- the return value should be