From: Matthew Fernandez Date: Sun, 17 Jul 2022 22:15:40 +0000 (-0700) Subject: gvc: squash -Wunused-parameter warnings in callback functions X-Git-Tag: 5.0.1~33^2~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=af38cf05e415d74df5195850902daac1a1f456df;p=graphviz gvc: squash -Wunused-parameter warnings in callback functions These cannot easily be removed as these functions need to conform to a particular type signature. --- 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; }