[Xfce4-commits] [xfce/xfce4-settings] 01/01: Fix compiler warnings

noreply at xfce.org noreply at xfce.org
Wed Feb 13 22:04:08 CET 2019


This is an automated email from the git hooks/post-receive script.

a   n   d   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/xfce4-settings.

commit 9f2f09909df13980b53f95c4737f44d8de88414e
Author: Alexander Schwinn <alexxcons at xfce.org>
Date:   Wed Feb 13 21:54:52 2019 +0100

    Fix compiler warnings
---
 dialogs/display-settings/main.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/dialogs/display-settings/main.c b/dialogs/display-settings/main.c
index e883bcf..4939e81 100644
--- a/dialogs/display-settings/main.c
+++ b/dialogs/display-settings/main.c
@@ -1875,7 +1875,7 @@ display_settings_dialog_new (GtkBuilder *builder)
 {
     GObject          *combobox;
     GtkCellRenderer  *renderer;
-    GObject          *label, *check, *primary, *primary_label, *mirror, *identify, *primary_indicator;
+    GObject          *label, *check, *primary, *mirror, *identify, *primary_indicator;
     GtkWidget        *button;
     GtkTreeSelection *selection;
 
@@ -2286,7 +2286,7 @@ static void get_geometry (XfceOutputInfo *output, int *w, int *h);
 static void
 lay_out_outputs_horizontally (void)
 {
-    gint x, y;
+    gint x, y, temp_x;
     GList *list;
 
     /* Lay out all the monitors horizontally when "mirror screens" is turned
@@ -2306,7 +2306,8 @@ lay_out_outputs_horizontally (void)
         if (output->connected && output->on)
         {
             y = MAX(output->y, y);
-            x = MAX(output->x + output->width, x);
+            temp_x = output->x + output->width;
+            x = MAX(temp_x, x);
         }
     }
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list