gint page_total;
};
-static void free_buffer(guchar *UNUSED(pixels), gpointer data)
+static void free_buffer(guchar *, gpointer data)
{
heif_image_release(static_cast<const struct heif_image*>(data));
}
-static gboolean image_loader_heif_load(gpointer loader, const guchar *buf, gsize count, GError **UNUSED(error))
+static gboolean image_loader_heif_load(gpointer loader, const guchar *buf, gsize count, GError **)
{
auto ld = static_cast<ImageLoaderHEIF *>(loader);
struct heif_context* ctx;
return ld->pixbuf;
}
-static gchar* image_loader_heif_get_format_name(gpointer UNUSED(loader))
+static gchar* image_loader_heif_get_format_name(gpointer)
{
return g_strdup("heif");
}
-static gchar** image_loader_heif_get_format_mime_types(gpointer UNUSED(loader))
+static gchar** image_loader_heif_get_format_mime_types(gpointer)
{
static const gchar *mime[] = {"image/heic", nullptr};
return g_strdupv(const_cast<gchar **>(mime));
return ld->page_total;
}
-static gboolean image_loader_heif_close(gpointer UNUSED(loader), GError **UNUSED(error))
+static gboolean image_loader_heif_close(gpointer, GError **)
{
return TRUE;
}