]> granicus.if.org Git - graphviz/commitdiff
GDK plugin writer: squash -Wunused-parameter warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 3 Apr 2022 19:50:56 +0000 (12:50 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 9 Apr 2022 01:03:37 +0000 (18:03 -0700)
This function is used as a callback so the `error` parameter cannot be removed.

plugin/gdk/gvdevice_gdk.c

index 0591bbe7a620c36634a8791489193927d5c17a4f..0d04761ccadbbabd218ca03d324696fde9b07f19 100644 (file)
@@ -56,6 +56,7 @@ argb2rgba ( unsigned int width, unsigned int height, char *data)
 static gboolean
 writer ( const gchar *buf, gsize count, GError **error, gpointer data)
 {
+  (void)error;
   return count == gvwrite(data, buf, count);
 }