caps: Use G_GNUC_WARN_UNUSED_RESULT for make_writable()
authorBenjamin Otte <otte@redhat.com>
Mon, 26 Apr 2010 19:52:07 +0000 (21:52 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 29 Apr 2010 20:41:36 +0000 (22:41 +0200)
commit31832d3c217ab1930e05f614ef7c1ccc4042606b
treeb71370aa87be9ead8d9d2f3fc0e3f150b2109b0b
parentb748da35d62eed88aa8b0f4d605e43033f2615a0
caps: Use G_GNUC_WARN_UNUSED_RESULT for make_writable()

People often call
  gst_caps_make_writable (caps);
instead of
  caps = gst_caps_make_writable (caps);
and cause a bug. Warning about an unused return value helps here.

See https://bugzilla.gnome.org/show_bug.cgi?id=616541#c2 for an example.
gst/gstcaps.h