mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 05:16:05 +00:00
bitreader: Fix uninitialized variable compiler warnings
gcc doesn't notice that the check assertion macros will abort further execution of the tests.
This commit is contained in:
parent
f758e465c8
commit
f17efc49c6
1 changed files with 2 additions and 2 deletions
|
@ -45,7 +45,7 @@ GST_START_TEST (test_initialization)
|
|||
GstBuffer *buffer = gst_buffer_new ();
|
||||
GstBitReader reader = GST_BIT_READER_INIT (data, 4);
|
||||
GstBitReader *reader2;
|
||||
guint8 x;
|
||||
guint8 x = 0;
|
||||
|
||||
GST_BUFFER_DATA (buffer) = data;
|
||||
GST_BUFFER_SIZE (buffer) = 4;
|
||||
|
@ -197,7 +197,7 @@ GST_START_TEST (test_position_tracking)
|
|||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff
|
||||
};
|
||||
GstBitReader reader = GST_BIT_READER_INIT (data, 16);
|
||||
guint8 a;
|
||||
guint8 a = 0;
|
||||
|
||||
fail_unless_equals_int (gst_bit_reader_get_pos (&reader), 0);
|
||||
fail_unless_equals_int (gst_bit_reader_get_remaining (&reader), 16 * 8);
|
||||
|
|
Loading…
Reference in a new issue