From 38b3cfa2844960c3010e9cf8f7456f462c379916 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Tue, 7 Feb 2017 09:06:21 +0100 Subject: [PATCH] liblo: fix build for unititialized variables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Müller --- ...nsure-variables-are-set-to-fix-build.patch | 36 +++++++++++++++++++ .../recipes-multimedia/liblo/liblo_0.28.bb | 5 ++- 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 recipes-misc/recipes-multimedia/liblo/files/0001-message.c-ensure-variables-are-set-to-fix-build.patch diff --git a/recipes-misc/recipes-multimedia/liblo/files/0001-message.c-ensure-variables-are-set-to-fix-build.patch b/recipes-misc/recipes-multimedia/liblo/files/0001-message.c-ensure-variables-are-set-to-fix-build.patch new file mode 100644 index 00000000..7845646e --- /dev/null +++ b/recipes-misc/recipes-multimedia/liblo/files/0001-message.c-ensure-variables-are-set-to-fix-build.patch @@ -0,0 +1,36 @@ +From 5bcffb9084b4b85f3006180d86df32295679ac35 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20M=C3=BCller?= +Date: Tue, 7 Feb 2017 08:57:39 +0100 +Subject: [PATCH] message.c: ensure variables are set to fix build +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +| ../../src/message.c: In function 'lo_arg_pp_internal': +| ../../src/message.c:1075:9: error: 'val64.f' may be used uninitialized in this function [-Werror=maybe-uninitialized] +| printf("%f", val64.f); +| ^~~~~~~~~~~~~~~~~~~~~ + +Upstream-Status: Pending + +Signed-off-by: Andreas Müller +--- + src/message.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/message.c b/src/message.c +index 7980ccf..5de9998 100644 +--- a/src/message.c ++++ b/src/message.c +@@ -1010,6 +1010,8 @@ void lo_arg_pp_internal(lo_type type, void *data, int bigendian) + { + lo_pcast32 val32; + lo_pcast64 val64; ++ val32.f = 0.0; ++ val64.f = 0.0; + lo_timetag valtt = { 0, 1 }; + int size; + int i; +-- +2.9.3 + diff --git a/recipes-misc/recipes-multimedia/liblo/liblo_0.28.bb b/recipes-misc/recipes-multimedia/liblo/liblo_0.28.bb index 0183dd2a..dc0e5c77 100644 --- a/recipes-misc/recipes-multimedia/liblo/liblo_0.28.bb +++ b/recipes-misc/recipes-multimedia/liblo/liblo_0.28.bb @@ -5,6 +5,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24" inherit autotools pkgconfig -SRC_URI = "${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}/${PV}/${BPN}-${PV}.tar.gz" +SRC_URI = " \ + ${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}/${PV}/${BPN}-${PV}.tar.gz \ + file://0001-message.c-ensure-variables-are-set-to-fix-build.patch \ +" SRC_URI[md5sum] = "e2a4391a08b49bb316c03e2034e06fa2" SRC_URI[sha256sum] = "da94a9b67b93625354dd89ff7fe31e5297fc9400b6eaf7378c82ee1caf7db909"