diff --git a/gst/gstmemory.h b/gst/gstmemory.h index 5d6edecddf..f498de8e8f 100644 --- a/gst/gstmemory.h +++ b/gst/gstmemory.h @@ -351,13 +351,13 @@ void gst_memory_resize (GstMemory *mem, gssize offset, gsize siz #define gst_memory_make_writable(m) GST_MEMORY_CAST (gst_mini_object_make_writable (GST_MINI_OBJECT_CAST (m))) /* retrieving data */ -GstMemory * gst_memory_make_mapped (GstMemory *mem, GstMapInfo *info, GstMapFlags flags); +GstMemory * gst_memory_make_mapped (GstMemory *mem, GstMapInfo *info, GstMapFlags flags) G_GNUC_WARN_UNUSED_RESULT; gboolean gst_memory_map (GstMemory *mem, GstMapInfo *info, GstMapFlags flags); void gst_memory_unmap (GstMemory *mem, GstMapInfo *info); /* copy and subregions */ -GstMemory * gst_memory_copy (GstMemory *mem, gssize offset, gssize size); -GstMemory * gst_memory_share (GstMemory *mem, gssize offset, gssize size); +GstMemory * gst_memory_copy (GstMemory *mem, gssize offset, gssize size) G_GNUC_WARN_UNUSED_RESULT; +GstMemory * gst_memory_share (GstMemory *mem, gssize offset, gssize size) G_GNUC_WARN_UNUSED_RESULT; /* span memory */ gboolean gst_memory_is_span (GstMemory *mem1, GstMemory *mem2, gsize *offset); diff --git a/gst/gstminiobject.h b/gst/gstminiobject.h index 15556fbce7..bdb2e6107a 100644 --- a/gst/gstminiobject.h +++ b/gst/gstminiobject.h @@ -237,10 +237,10 @@ gboolean gst_mini_object_lock (GstMiniObject *object, GstLockF void gst_mini_object_unlock (GstMiniObject *object, GstLockFlags flags); gboolean gst_mini_object_is_writable (const GstMiniObject *mini_object); -GstMiniObject * gst_mini_object_make_writable (GstMiniObject *mini_object); +GstMiniObject * gst_mini_object_make_writable (GstMiniObject *mini_object) G_GNUC_WARN_UNUSED_RESULT; /* copy */ -GstMiniObject * gst_mini_object_copy (const GstMiniObject *mini_object) G_GNUC_MALLOC; +GstMiniObject * gst_mini_object_copy (const GstMiniObject *mini_object) G_GNUC_MALLOC G_GNUC_WARN_UNUSED_RESULT; void gst_mini_object_set_qdata (GstMiniObject *object, GQuark quark, @@ -251,7 +251,7 @@ gpointer gst_mini_object_steal_qdata (GstMiniObject *object, GQuark q gboolean gst_mini_object_replace (GstMiniObject **olddata, GstMiniObject *newdata); gboolean gst_mini_object_take (GstMiniObject **olddata, GstMiniObject *newdata); -GstMiniObject * gst_mini_object_steal (GstMiniObject **olddata); +GstMiniObject * gst_mini_object_steal (GstMiniObject **olddata) G_GNUC_WARN_UNUSED_RESULT; /** * GST_DEFINE_MINI_OBJECT_TYPE: diff --git a/gst/gsturi.h b/gst/gsturi.h index 6e1504cef4..7e0f0b3a82 100644 --- a/gst/gsturi.h +++ b/gst/gsturi.h @@ -209,11 +209,11 @@ GstUri * gst_uri_from_string_with_base (GstUri * base, gboolean gst_uri_equal (const GstUri * first, const GstUri * second); GstUri * gst_uri_join (GstUri * base_uri, - GstUri * ref_uri); + GstUri * ref_uri) G_GNUC_WARN_UNUSED_RESULT; gchar * gst_uri_join_strings (const gchar * base_uri, const gchar * ref_uri) G_GNUC_MALLOC; gboolean gst_uri_is_writable (const GstUri * uri); -GstUri * gst_uri_make_writable (GstUri * uri); +GstUri * gst_uri_make_writable (GstUri * uri) G_GNUC_WARN_UNUSED_RESULT; gchar * gst_uri_to_string (const GstUri * uri) G_GNUC_MALLOC; gboolean gst_uri_is_normalized (const GstUri * uri); gboolean gst_uri_normalize (GstUri * uri);