002-static_assert.patch 388 B

1234567891011121314
  1. --- a/src/evdev-tablet.c
  2. +++ b/src/evdev-tablet.c
  3. @@ -1155,9 +1155,11 @@ static void
  4. tablet_mark_all_axes_changed(struct tablet_dispatch *tablet,
  5. struct libinput_tablet_tool *tool)
  6. {
  7. +#if 0
  8. static_assert(sizeof(tablet->changed_axes) ==
  9. sizeof(tool->axis_caps),
  10. "Mismatching array sizes");
  11. +#endif
  12. memcpy(tablet->changed_axes,
  13. tool->axis_caps,