[Xfce4-commits] [apps/xfce4-screensaver] 239/425: fix build warnings about unused variables

noreply at xfce.org noreply at xfce.org
Mon Oct 15 01:51:26 CEST 2018


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

b   l   u   e   s   a   b   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 apps/xfce4-screensaver.

commit b34717c1a3c9bd2cce18c100d7d0834387e231db
Author: monsta <monsta at inbox.ru>
Date:   Mon Feb 1 21:30:17 2016 +0300

    fix build warnings about unused variables
---
 savers/floaters.c        | 4 ----
 savers/gste-popsquares.c | 4 +---
 2 files changed, 1 insertion(+), 7 deletions(-)

diff --git a/savers/floaters.c b/savers/floaters.c
index 9eb7897..dd0d85e 100644
--- a/savers/floaters.c
+++ b/savers/floaters.c
@@ -780,10 +780,6 @@ screen_saver_floater_do_draw (ScreenSaver        *screen_saver,
 	if (screen_saver->should_show_paths && (floater->path != NULL))
 	{
 		gdouble dash_pattern[] = { 5.0 };
-		gint size;
-
-		size = CLAMP ((int) (FLOATER_MAX_SIZE * floater->path_start_scale),
-		              FLOATER_MIN_SIZE, FLOATER_MAX_SIZE);
 
 		cairo_save (context);
 		cairo_set_source_rgba (context, 1.0, 1.0, 1.0, .2 * floater->opacity);
diff --git a/savers/gste-popsquares.c b/savers/gste-popsquares.c
index a279f27..837bb2c 100644
--- a/savers/gste-popsquares.c
+++ b/savers/gste-popsquares.c
@@ -553,7 +553,7 @@ draw_frame (GSTEPopsquares *pop,
 	int      border = 1;
 	gboolean twitch = FALSE;
 	int      x, y;
-	int      sw, sh, gw, gh;
+	int      gw, gh;
 	int      nsquares;
 	int      window_width;
 	int      window_height;
@@ -569,8 +569,6 @@ draw_frame (GSTEPopsquares *pop,
 	gs_theme_engine_get_window_size (GS_THEME_ENGINE (pop),
 	                                 &window_width,
 	                                 &window_height);
-	sw = window_width / pop->priv->subdivision;
-	sh = window_height / pop->priv->subdivision;
 
 	gw = pop->priv->subdivision;
 	gh = pop->priv->subdivision;

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


More information about the Xfce4-commits mailing list