]> granicus.if.org Git - graphviz/commitdiff
gvc: squash -Wunused-parameter warnings in callback functions
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 17 Jul 2022 22:15:40 +0000 (15:15 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 23 Jul 2022 00:14:28 +0000 (17:14 -0700)
These cannot easily be removed as these functions need to conform to a
particular type signature.

lib/gvc/gvevent.c

index aa095a964d27f21b5d2bf5ee107b969f9a4eb424..333abd9d2ce675295f0d0448d4464004b20cbba0 100644 (file)
@@ -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;
 }