if (!libinput_category_get_default()) {
/* So we still allow tap to click by default */
struct libinput_category *l = libinput_category_create();
+ /* Prevents unused variable warning when compiled without asserts */
+ (void)l;
assert(l && libinput_category_get_default() == l);
}
{
struct seat *seat = wl_container_of(listener, seat, constraint_commit);
struct wlr_pointer_constraint_v1 *constraint = seat->current_constraint;
+ /* Prevents unused variable warning when compiled without asserts */
+ (void)constraint;
assert(constraint->surface = data);
}
assert(view);
struct server *server = view->server;
- assert(server);
struct output *output = view->output;
if (!output_is_usable(output)) {
assert(view);
struct server *server = view->server;
- assert(server);
/* Always start with a fresh bitmap */
destroy_bitmap(bmp);
assert(view);
struct server *server = view->server;
- assert(server);
if (bmp->nr_rows < 1 || bmp->nr_cols < 1) {
return;
{
assert(view);
- struct server *server = view->server;
- assert(server);
-
struct border margin = ssd_get_margin(view->ssd);
struct output *output = view->output;
static void
pressed_surface_destroy(struct wl_listener *listener, void *data)
{
- struct wlr_surface *surface = data;
struct seat *seat = wl_container_of(listener, seat,
pressed_surface_destroy);
- assert(surface == seat->pressed.surface);
+ /*
+ * Using data directly prevents 'unused variable'
+ * warning when compiling without asserts
+ */
+ assert(data == seat->pressed.surface);
+
seat_reset_pressed(seat);
}