diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2011-08-02 22:57:15 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2011-08-02 22:57:15 +0100 |
commit | 7e49dad23ba349da2dbf5acdc1004c42486783c2 (patch) | |
tree | 3ebc4b2ee2369d058d9ec41eb504c3115c9e692e | |
parent | e8d5e476efa2786ec117af14565665efcde48d21 (diff) |
Fix some more variable-set-but-not-used compiler warnings
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | ext/opencv/gstmotioncells.c | 2 | ||||
-rw-r--r-- | tests/examples/opencv/gst_element_print_properties.c | 2 | ||||
-rw-r--r-- | tests/examples/opencv/gstmotioncells_dynamic_test.c | 4 |
4 files changed, 5 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore index dd2bbc8ae..899464ac0 100644 --- a/.gitignore +++ b/.gitignore @@ -49,3 +49,4 @@ gst*orc.h /tests/check/orc /tests/examples/shapewipe/shapewipe-example /tests/examples/jack/jack_client +/tests/examples/opencv/gstmotioncells_dynamic_test diff --git a/ext/opencv/gstmotioncells.c b/ext/opencv/gstmotioncells.c index 029295931..a349bcac1 100644 --- a/ext/opencv/gstmotioncells.c +++ b/ext/opencv/gstmotioncells.c @@ -219,10 +219,8 @@ static void gst_motion_cells_class_init (GstMotioncellsClass * klass) { GObjectClass *gobject_class; - GstElementClass *gstelement_class; gobject_class = (GObjectClass *) klass; - gstelement_class = (GstElementClass *) klass; parent_class = g_type_class_peek_parent (klass); gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_motion_cells_finalize); diff --git a/tests/examples/opencv/gst_element_print_properties.c b/tests/examples/opencv/gst_element_print_properties.c index 28d23b9cd..4192fe84e 100644 --- a/tests/examples/opencv/gst_element_print_properties.c +++ b/tests/examples/opencv/gst_element_print_properties.c @@ -89,7 +89,6 @@ gst_element_print_properties (GstElement * element) GParamSpec **property_specs; guint num_properties, i; gboolean readable; - gboolean first_flag; g_return_if_fail (element != NULL); @@ -108,7 +107,6 @@ gst_element_print_properties (GstElement * element) GParamSpec *param = property_specs[i]; readable = FALSE; - first_flag = TRUE; g_value_init (&value, param->value_type); diff --git a/tests/examples/opencv/gstmotioncells_dynamic_test.c b/tests/examples/opencv/gstmotioncells_dynamic_test.c index 21c351bfd..83834065b 100644 --- a/tests/examples/opencv/gstmotioncells_dynamic_test.c +++ b/tests/examples/opencv/gstmotioncells_dynamic_test.c @@ -206,8 +206,12 @@ main (int argc, char *argv[]) while (TRUE) { found_property = FALSE; i = 0; + ret = scanf ("%19s %99s", property, prop_value); + if (ret < 1) + g_printerr ("Error parsing command.\n"); + if ((g_strcmp0 (property, "q") == 0) || (g_strcmp0 (prop_value, "q") == 0)) break; printf ("property: %s -> value: %s \n", property, prop_value); |