summaryrefslogtreecommitdiff
path: root/telepathy-glib/handle-repo.h
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2009-12-18 17:46:32 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2009-12-18 17:46:32 +0000
commit3351cb19b6fbaea41637c02231491a5d340bec88 (patch)
treefb7de3053b4129f9673dd3915b39e16172d3cd3a /telepathy-glib/handle-repo.h
parent9f27989c2c8e7555eb33b2bd9cbd1c4907d4c240 (diff)
downloadtelepathy-glib-3351cb19b6fbaea41637c02231491a5d340bec88.tar.gz
TpIntSet, TpHandleSet: warn if some functions with no side-effects have their results ignored
That'd be harmless but nonsensical.
Diffstat (limited to 'telepathy-glib/handle-repo.h')
-rw-r--r--telepathy-glib/handle-repo.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/telepathy-glib/handle-repo.h b/telepathy-glib/handle-repo.h
index b0de534b5..eb675fed5 100644
--- a/telepathy-glib/handle-repo.h
+++ b/telepathy-glib/handle-repo.h
@@ -97,7 +97,7 @@ gboolean tp_handles_client_release (TpHandleRepoIface *self,
const gchar *client, const GArray *handles, GError **error);
const char *tp_handle_inspect (TpHandleRepoIface *self,
- TpHandle handle);
+ TpHandle handle) G_GNUC_WARN_UNUSED_RESULT;
TpHandle tp_handle_lookup (TpHandleRepoIface *self,
const gchar *id, gpointer context, GError **error);
TpHandle tp_handle_ensure (TpHandleRepoIface *self,
@@ -127,7 +127,7 @@ TpHandleSet * tp_handle_set_new (TpHandleRepoIface *repo)
G_GNUC_WARN_UNUSED_RESULT;
void tp_handle_set_destroy (TpHandleSet *set);
-TpIntSet *tp_handle_set_peek (TpHandleSet *set);
+TpIntSet *tp_handle_set_peek (TpHandleSet *set) G_GNUC_WARN_UNUSED_RESULT;
void tp_handle_set_add (TpHandleSet *set, TpHandle handle);
gboolean tp_handle_set_remove (TpHandleSet *set, TpHandle handle);