mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/virt-viewer
synced 2026-01-03 07:14:34 +00:00
window: Adjust get_image_format() prototype
This adds an unused parameter, but lets us get rid of this new warning
with gcc 8:
virt-viewer-window.c: In function 'get_image_format':
virt-viewer-window.c:930:33: warning: cast between incompatible function types from 'GHashTable * (*)(void)' {aka 'struct _GHashTable * (*)(void)'} to 'void * (*)(void *)' [-Wcast-function-type]
g_once(&image_formats_once, (GThreadFunc)init_image_formats, NULL);
Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
Acked-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
This commit is contained in:
parent
05c8b75113
commit
feea9ccd73
@ -910,7 +910,7 @@ static void add_if_writable (GdkPixbufFormat *data, GHashTable *formats)
|
||||
}
|
||||
}
|
||||
|
||||
static GHashTable *init_image_formats(void)
|
||||
static GHashTable *init_image_formats(G_GNUC_UNUSED gpointer user_data)
|
||||
{
|
||||
GHashTable *format_map;
|
||||
GSList *formats = gdk_pixbuf_get_formats();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user