mirror of
https://github.com/openwrt/packages.git
synced 2026-01-10 11:44:48 +00:00
libinput: fix and optimize build
Buildbots are reporting the following build failure: -snip- CCLD test-build-linker ../src/.libs/libinput.so: undefined reference to `static_assert' -snap- Since this is the only call to static_assert within the library, removing this assertion seems to be reasonable. While at, speed up the build by not building tests and documentation. Signed-off-by: Michael Heimpold <mhei@heimpold.de>
This commit is contained in:
14
libs/libinput/patches/002-static_assert.patch
Normal file
14
libs/libinput/patches/002-static_assert.patch
Normal file
@@ -0,0 +1,14 @@
|
||||
--- a/src/evdev-tablet.c
|
||||
+++ b/src/evdev-tablet.c
|
||||
@@ -1155,9 +1155,11 @@ static void
|
||||
tablet_mark_all_axes_changed(struct tablet_dispatch *tablet,
|
||||
struct libinput_tablet_tool *tool)
|
||||
{
|
||||
+#if 0
|
||||
static_assert(sizeof(tablet->changed_axes) ==
|
||||
sizeof(tool->axis_caps),
|
||||
"Mismatching array sizes");
|
||||
+#endif
|
||||
|
||||
memcpy(tablet->changed_axes,
|
||||
tool->axis_caps,
|
||||
Reference in New Issue
Block a user