frame: fix gcc6 (musl) build
This commit is contained in:
parent
742be4b3f2
commit
ceb52b6d87
23
srcpkgs/frame/patches/fix-gcc6-uninitialized.patch
Normal file
23
srcpkgs/frame/patches/fix-gcc6-uninitialized.patch
Normal file
|
@ -0,0 +1,23 @@
|
|||
Initialize variables which gcc6 for musl libc complains
|
||||
may be unitialized when returned.
|
||||
|
||||
--- src/touch.cpp 2013-02-08 20:05:24.000000000 +0100
|
||||
+++ src/touch.cpp 2016-10-04 10:57:05.683000000 +0200
|
||||
@@ -195,7 +195,7 @@
|
||||
}
|
||||
|
||||
float frame_touch_get_device_x(UFTouch touch) {
|
||||
- float x;
|
||||
+ float x = 0.0f;
|
||||
const oif::frame::UFTouch* uftouch =
|
||||
static_cast<const oif::frame::UFTouch*>(touch);
|
||||
UFStatus status = uftouch->GetValue(UFAxisTypeX, &x);
|
||||
@@ -204,7 +204,7 @@
|
||||
}
|
||||
|
||||
float frame_touch_get_device_y(UFTouch touch) {
|
||||
- float y;
|
||||
+ float y = 0.0f;
|
||||
const oif::frame::UFTouch* uftouch =
|
||||
static_cast<const oif::frame::UFTouch*>(touch);
|
||||
UFStatus status = uftouch->GetValue(UFAxisTypeY, &y);
|
|
@ -7,7 +7,7 @@ short_desc="Touch Frame Library"
|
|||
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
||||
makedepends="libXi-devel xorg-server-devel"
|
||||
hostmakedepends="pkg-config"
|
||||
license="LGPL"
|
||||
license="LGPL-2.1"
|
||||
homepage="https://launchpad.net/frame"
|
||||
distfiles="https://launchpad.net/${pkgname}/trunk/v${version}/+download/${pkgname}-${version}.tar.gz"
|
||||
checksum=cfb9ab52cdccd926f1822a457264d0014c7eb9f4600a72626063dd073b26256f
|
||||
|
|
Loading…
Reference in New Issue
Block a user