Commit 0e949610 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller
Browse files

tests: fix unusued-but-assigned-variable warnings with gcc 4.6

parent 8ba64e4e
......@@ -93,7 +93,7 @@ setup_multiqueue (GstElement * pipe, GstElement * inputs[],
GST_START_TEST (test_simple_pipeline)
{
GstElement *pipe, *mq;
GstElement *pipe;
GstElement *inputs[1];
GstElement *outputs[1];
GstMessage *msg;
......@@ -107,7 +107,7 @@ GST_START_TEST (test_simple_pipeline)
outputs[0] = gst_element_factory_make ("fakesink", NULL);
fail_unless (outputs[0] != NULL, "failed to create 'fakesink' element");
mq = setup_multiqueue (pipe, inputs, outputs, 1);
setup_multiqueue (pipe, inputs, outputs, 1);
gst_element_set_state (pipe, GST_STATE_PLAYING);
......@@ -128,7 +128,7 @@ GST_END_TEST;
GST_START_TEST (test_simple_shutdown_while_running)
{
GstElement *pipe, *mq;
GstElement *pipe;
GstElement *inputs[1];
GstElement *outputs[1];
GstMessage *msg;
......@@ -141,7 +141,7 @@ GST_START_TEST (test_simple_shutdown_while_running)
outputs[0] = gst_element_factory_make ("fakesink", NULL);
fail_unless (outputs[0] != NULL, "failed to create 'fakesink' element");
mq = setup_multiqueue (pipe, inputs, outputs, 1);
setup_multiqueue (pipe, inputs, outputs, 1);
gst_element_set_state (pipe, GST_STATE_PAUSED);
......
......@@ -59,7 +59,7 @@ setup_queue2 (GstElement * pipe, GstElement * input, GstElement * output)
GST_START_TEST (test_simple_pipeline)
{
GstElement *pipe, *queue2, *input, *output;
GstElement *pipe, *input, *output;
GstMessage *msg;
pipe = gst_pipeline_new ("pipeline");
......@@ -71,7 +71,7 @@ GST_START_TEST (test_simple_pipeline)
output = gst_element_factory_make ("fakesink", NULL);
fail_unless (output != NULL, "failed to create 'fakesink' element");
queue2 = setup_queue2 (pipe, input, output);
setup_queue2 (pipe, input, output);
gst_element_set_state (pipe, GST_STATE_PLAYING);
......
......@@ -619,7 +619,6 @@ GST_START_TEST (test_deserialize_string)
};
guint i;
GValue v = { 0, };
gboolean ret = TRUE;
g_value_init (&v, G_TYPE_STRING);
for (i = 0; i < G_N_ELEMENTS (tests); i++) {
......@@ -630,7 +629,6 @@ GST_START_TEST (test_deserialize_string)
"\nwanted: %s\ngot : %s", tests[i].to, g_value_get_string (&v));
} else {
fail_if (tests[i].to != NULL, "failed, but wanted: %s", tests[i].to);
ret = FALSE;
}
}
g_value_unset (&v);
......
......@@ -95,10 +95,8 @@ gst_test_trans_base_init (gpointer g_class)
static void
gst_test_trans_class_init (GstTestTransClass * klass)
{
GObjectClass *gobject_class;
GstBaseTransformClass *trans_class;
gobject_class = (GObjectClass *) klass;
trans_class = (GstBaseTransformClass *) klass;
trans_class->passthrough_on_same_caps = klass_passthrough_on_same_caps;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment