From 9034e7ba7c225fde4349cc59c6ba242225290281 Mon Sep 17 00:00:00 2001 From: infirit Date: Sat, 8 Nov 2014 01:48:22 +0100 Subject: Fix warning and remove unused variable --- libmate-desktop/edid-parse.c | 2 +- libmate-desktop/mate-bg.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'libmate-desktop') diff --git a/libmate-desktop/edid-parse.c b/libmate-desktop/edid-parse.c index 842e327..8b2393f 100644 --- a/libmate-desktop/edid-parse.c +++ b/libmate-desktop/edid-parse.c @@ -331,7 +331,7 @@ static int 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/libmate-desktop/mate-bg.c b/libmate-desktop/mate-bg.c index 85d4ceb..8666b73 100644 --- a/libmate-desktop/mate-bg.c +++ b/libmate-desktop/mate-bg.c @@ -2643,14 +2643,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); -- cgit v1.2.1