fix -Os compiler warnings in 1.7.1 gstreamer1.0 plugins
cover fix -Os compiler warnings in 1.7.1 gstreamer1.0 plugins
Building with -Os generates a few compiler warnings, which get treated as errors and cause build failures.
Andre McCurdy (2):
gstreamer1.0-plugins-good: fix compiler warnings with -Os in 1.7.1 gstreamer1.0-plugins-bad: fix compiler warnings with -Os in 1.7.1
...itialized-warnings-when-compiling-with-Os.patch | 28 +++++++++++++++ .../gstreamer/gstreamer1.0-plugins-bad_git.bb | 1 + ...itialized-warnings-when-compiling-with-Os.patch | 41 ++++++++++++++++++++++ .../gstreamer/gstreamer1.0-plugins-good_git.bb | 1 + 4 files changed, 71 insertions(+) create mode 100644 meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/fix-maybe-uninitialized-warnings-when-compiling-with-Os.patch create mode 100644 meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/fix-maybe-uninitialized-warnings-when-compiling-with-Os.patch
Signature · 1 line
1.9.1
PATCH 1/2 gstreamer1.0-plugins-good: fix compiler warnings with -Os in 1.7.1
Signed-off-by Andre McCurdy <[email protected]>
--- ...itialized-warnings-when-compiling-with-Os.patch | 41 ++++++++++++++++++++++ .../gstreamer/gstreamer1.0-plugins-good_git.bb | 1 + 2 files changed, 42 insertions(+) create mode 100644 meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/fix-maybe-uninitialized-warnings-when-compiling-with-Os.patch
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/fix-maybe-uninitialized-warnings-when-compiling-with-Os.patch new file +41 -0
@@ -0,0 +1,41 @@ +From 63a838d9ae2be480be8d28d6f51762d288b2a54a Mon Sep 17 00:00:00 2001 +From: Andre McCurdy <[email protected]> +Date: Tue, 26 Jan 2016 14:47:36 -0800 +Subject: [PATCH] fix maybe-uninitialized warnings when compiling with -Os + +Upstream-Status: Pending + +Signed-off-by: Andre McCurdy <[email protected]> +--- + gst/isomp4/qtdemux.c | 1 + + gst/rtp/gstrtph261pay.c | 2 +- + 2 files changed, 2 insertions(+), 1 deletion(-) + +diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c +index 77bb73e..1fc60ac 100644 +--- a/gst/isomp4/qtdemux.c ++++ b/gst/isomp4/qtdemux.c +@@ -3269,6 +3269,7 @@ qtdemux_parse_cenc_aux_info (GstQTDemux * qtdemux, QtDemuxStream * stream, + gst_structure_set (properties, "iv", GST_TYPE_BUFFER, buf, NULL); + size = info_sizes[i]; + if (size > iv_size) { ++ n_subsamples = 0; + if (!gst_byte_reader_get_uint16_be (br, &n_subsamples) + || !(n_subsamples > 0)) { + gst_structure_free (properties); +diff --git a/gst/rtp/gstrtph261pay.c b/gst/rtp/gstrtph261pay.c +index 7cdd323..ebcf80e 100644 +--- a/gst/rtp/gstrtph261pay.c ++++ b/gst/rtp/gstrtph261pay.c +@@ -867,7 +867,7 @@ gst_rtp_h261_packetize_and_push (GstRtpH261Pay * pay, GstBuffer * buffer, + gst_rtp_buffer_calc_payload_len (GST_RTP_BASE_PAYLOAD_MTU (pay) - + GST_RTP_H261_PAYLOAD_HEADER_LEN, 0, 0); + guint startpos; +- gint num_gobs; ++ gint num_gobs = 0; + Gob gobs[MAX_NUM_GOB]; + Gob *gob; + Macroblock last_mb_in_previous_packet = { 0 }; +-- +1.9.1 +
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_git.bb +1 -0
@@ -9,6 +9,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \ SRC_URI = " \ git://anongit.freedesktop.org/gstreamer/gst-plugins-good;name=base \ git://anongit.freedesktop.org/gstreamer/common;destsuffix=git/common;name=common \ + file://fix-maybe-uninitialized-warnings-when-compiling-with-Os.patch \ " PV = "1.7.1+git${SRCPV}"
Signature · 1 line
1.9.1
PATCH 2/2 gstreamer1.0-plugins-bad: fix compiler warnings with -Os in 1.7.1
In reply to Andre McCurdySigned-off-by Andre McCurdy <[email protected]>
--- ...itialized-warnings-when-compiling-with-Os.patch | 28 ++++++++++++++++++++++ .../gstreamer/gstreamer1.0-plugins-bad_git.bb | 1 + 2 files changed, 29 insertions(+) create mode 100644 meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/fix-maybe-uninitialized-warnings-when-compiling-with-Os.patch
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/fix-maybe-uninitialized-warnings-when-compiling-with-Os.patch new file +28 -0
@@ -0,0 +1,28 @@ +From a67781000e82bd9ae3813da29401e8c0c852328a Mon Sep 17 00:00:00 2001 +From: Andre McCurdy <[email protected]> +Date: Tue, 26 Jan 2016 15:16:01 -0800 +Subject: [PATCH] fix maybe-uninitialized warnings when compiling with -Os + +Upstream-Status: Pending + +Signed-off-by: Andre McCurdy <[email protected]> +--- + gst-libs/gst/codecparsers/gstvc1parser.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gst-libs/gst/codecparsers/gstvc1parser.c b/gst-libs/gst/codecparsers/gstvc1parser.c +index fd16ee0..ddb890c 100644 +--- a/gst-libs/gst/codecparsers/gstvc1parser.c ++++ b/gst-libs/gst/codecparsers/gstvc1parser.c +@@ -1729,7 +1729,7 @@ gst_vc1_parse_sequence_layer (const guint8 * data, gsize size, + GstVC1SeqLayer * seqlayer) + { + guint32 tmp; +- guint8 tmp8; ++ guint8 tmp8 = 0; + guint8 structA[8] = { 0, }; + guint8 structB[12] = { 0, }; + GstBitReader br; +-- +1.9.1 +
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_git.bb +1 -0
@@ -11,6 +11,7 @@ SRC_URI = " \ git://anongit.freedesktop.org/gstreamer/gst-plugins-bad;name=base \ git://anongit.freedesktop.org/gstreamer/common;destsuffix=git/common;name=common \ file://configure-allow-to-disable-libssh2.patch \ + file://fix-maybe-uninitialized-warnings-when-compiling-with-Os.patch \ " PV = "1.7.1+git${SRCPV}"
Signature · 1 line
1.9.1