[gnome-desktop] all: fix build warnings with GCC 4.6



commit 74da91231a8f164a21797010d0e72264b2ddc43c
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Mar 16 11:02:53 2011 -0400

    all: fix build warnings with GCC 4.6

 libgnome-desktop/edid-parse.c |    2 +-
 libgnome-desktop/gnome-bg.c   |    2 --
 2 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/libgnome-desktop/edid-parse.c b/libgnome-desktop/edid-parse.c
index 225778a..0f4f100 100644
--- a/libgnome-desktop/edid-parse.c
+++ b/libgnome-desktop/edid-parse.c
@@ -330,7 +330,7 @@ decode_standard_timings (const uchar *edid, MonitorInfo *info)
 	if (first != 0x01 && second != 0x01)
 	{
 	    int w = 8 * (first + 31);
-	    int h;
+	    int h = 0;
 
 	    switch (get_bits (second, 6, 7))
 	    {
diff --git a/libgnome-desktop/gnome-bg.c b/libgnome-desktop/gnome-bg.c
index dec823e..ca7f1d2 100644
--- a/libgnome-desktop/gnome-bg.c
+++ b/libgnome-desktop/gnome-bg.c
@@ -2462,14 +2462,12 @@ pixbuf_draw_gradient (GdkPixbuf    *pixbuf,
 	int height;
 	int rowstride;
 	guchar *dst;
-	guchar *dst_limit;
 	int n_channels = 3;
 
 	rowstride = gdk_pixbuf_get_rowstride (pixbuf);
 	width = rect->width;
 	height = rect->height;
 	dst = gdk_pixbuf_get_pixels (pixbuf) + rect->x * n_channels + rowstride * rect->y;
-	dst_limit = dst + height * rowstride;
 
 	if (horizontal) {
 		guchar *gradient = create_gradient (primary, secondary, width);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]