From af38cf05e415d74df5195850902daac1a1f456df Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 17 Jul 2022 15:15:40 -0700 Subject: [PATCH] gvc: squash -Wunused-parameter warnings in callback functions These cannot easily be removed as these functions need to conform to a particular type signature. --- lib/gvc/gvevent.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/gvc/gvevent.c b/lib/gvc/gvevent.c index aa095a964..333abd9d2 100644 --- a/lib/gvc/gvevent.c +++ b/lib/gvc/gvevent.c @@ -426,6 +426,9 @@ static void gvevent_button_press(GVJ_t * job, int button, pointf pointer) static void gvevent_button_release(GVJ_t *job, int button, pointf pointer) { + (void)button; + (void)pointer; + job->click = false; job->button = false; } @@ -465,6 +468,8 @@ static void gvevent_motion(GVJ_t * job, pointf pointer) static int quit_cb(GVJ_t * job) { + (void)job; + return 1; } -- 2.40.0