From 4044f724c5cc68b8a5ad255a72e60e41cadad577 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 3 Apr 2022 12:50:56 -0700 Subject: [PATCH] GDK plugin writer: squash -Wunused-parameter warning This function is used as a callback so the `error` parameter cannot be removed. --- plugin/gdk/gvdevice_gdk.c | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.50.1