mirror of
https://github.com/labwc/labwc.git
synced 2025-11-01 22:58:47 -04:00
Prevent 'unused variable' warnings when compiled without asserts
This commit is contained in:
parent
e9552fb661
commit
a5c6b2f83d
4 changed files with 10 additions and 8 deletions
|
|
@ -616,6 +616,8 @@ handle_constraint_commit(struct wl_listener *listener, void *data)
|
|||
{
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue