gst-python: videomodule: fix compiler warning

Tim Müller tpm at kemper.freedesktop.org
Wed Apr 11 02:30:16 PDT 2012


Module: gst-python
Branch: master
Commit: b871bd0a9e7d2b771a437ff6d7376fbd3a9751a2
URL:    http://cgit.freedesktop.org/gstreamer/gst-python/commit/?id=b871bd0a9e7d2b771a437ff6d7376fbd3a9751a2

Author: Tim-Philipp Müller <tim.muller at collabora.co.uk>
Date:   Mon Dec 19 13:09:42 2011 +0000

videomodule: fix compiler warning

videomodule.c:43:21: error: variable 'gst' set but not used

---

 gst/videomodule.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/gst/videomodule.c b/gst/videomodule.c
index 9308a15..ebf677f 100644
--- a/gst/videomodule.c
+++ b/gst/videomodule.c
@@ -40,7 +40,8 @@ GST_DEBUG_CATEGORY (pygst_debug);       /* for python code */
 DL_EXPORT (void)
 initvideo (void)
 {
-  PyObject *m, *d, *gst;
+  PyObject *gst G_GNUC_UNUSED;
+  PyObject *m, *d;
 
   init_pygobject ();
   gst = pygst_init ();



More information about the gstreamer-commits mailing list