spkp

Stacking wayland compositor
git clone git://git.z3bra.org/sp:kp.git
Log | Files | Refs

commit b9c568acf464738c717fc23a11b21c9aad0d21ad
parent 18f199d018b8525a90666d62c29aa7533e994488
Author: Willy Goiffon <dev@z3bra.org>
Date:   Mon,  9 Nov 2020 10:15:32 +0100

Use (void)x trick to suppress unused parameter warnings

Diffstat:
Mcompositor.c | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/compositor.c b/compositor.c @@ -235,6 +235,7 @@ void cb_destroy_output(struct wl_listener *listener, void *data) { struct output *output; + (void)data; output = wl_container_of(listener, output, destroy); @@ -337,6 +338,8 @@ cb_map_window(struct wl_listener *listener, void *data) struct state *server; struct wlr_keyboard *kb; + (void)data; + w = wl_container_of(listener, w, map); server = w->server; @@ -357,6 +360,8 @@ cb_unmap_window(struct wl_listener *listener, void *data) { struct window *w; + (void)data; + w = wl_container_of(listener, w, map); w->mapped = 0; } @@ -369,6 +374,8 @@ cb_destroy_window(struct wl_listener *listener, void *data) { struct window *w; + (void)data; + w = wl_container_of(listener, w, destroy); wl_list_remove(&w->link); free(w); @@ -379,6 +386,8 @@ cb_kb_mod(struct wl_listener *listener, void *data) { struct keyboard *kb; + (void)data; + kb = wl_container_of(listener, kb, modifiers); wlr_seat_set_keyboard(kb->server->seat, kb->device);