From: Matthew Fernandez Date: Sun, 3 Apr 2022 19:50:56 +0000 (-0700) Subject: GDK plugin writer: squash -Wunused-parameter warning X-Git-Tag: 4.0.0~126^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4044f724c5cc68b8a5ad255a72e60e41cadad577;p=graphviz GDK plugin writer: squash -Wunused-parameter warning This function is used as a callback so the `error` parameter cannot be removed. --- diff --git a/plugin/gdk/gvdevice_gdk.c b/plugin/gdk/gvdevice_gdk.c index 0591bbe7a..0d04761cc 100644 --- a/plugin/gdk/gvdevice_gdk.c +++ b/plugin/gdk/gvdevice_gdk.c @@ -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); }