From 2bb9b36879f6ad480bd81bc0aea3d10b7d48269e Mon Sep 17 00:00:00 2001 From: rbuj Date: Mon, 25 Oct 2021 12:36:17 +0200 Subject: Variable 'screen' is assigned a value that is never used --- src/eom-window.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/eom-window.c b/src/eom-window.c index 0d008dd..a9dcd05 100644 --- a/src/eom-window.c +++ b/src/eom-window.c @@ -4685,7 +4685,9 @@ static void eom_window_init (EomWindow *window) { GdkGeometry hints; +#if defined(HAVE_LCMS) && defined(GDK_WINDOWING_X11) GdkScreen *screen; +#endif EomWindowPrivate *priv; eom_debug (DEBUG_WINDOW); @@ -4698,8 +4700,6 @@ eom_window_init (EomWindow *window) hints.min_width = EOM_WINDOW_MIN_WIDTH; hints.min_height = EOM_WINDOW_MIN_HEIGHT; - screen = gtk_widget_get_screen (GTK_WIDGET (window)); - priv = window->priv = eom_window_get_instance_private (window); priv->view_settings = g_settings_new (EOM_CONF_VIEW); @@ -4737,6 +4737,7 @@ eom_window_init (EomWindow *window) window->priv->status = EOM_WINDOW_STATUS_UNKNOWN; #if defined(HAVE_LCMS) && defined(GDK_WINDOWING_X11) + screen = gtk_widget_get_screen (GTK_WIDGET (window)); window->priv->display_profile = eom_window_get_display_profile (screen); #endif -- cgit v1.2.1