mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
tests: fix unusued-but-assigned-variable warnings with gcc 4.6
This commit is contained in:
parent
8ba64e4e5d
commit
0e94961069
4 changed files with 6 additions and 10 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue