diff options
author | Alon Levy <alevy@redhat.com> | 2011-01-24 18:17:34 +0200 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2011-01-25 17:22:48 +0200 |
commit | 46c70521d55ca649d94dd999986a6a4e91b15923 (patch) | |
tree | 4c15cc82e0ff64b77941a279a66000c4c10113f1 /server/red_parse_qxl.c | |
parent | d3b22d86f070e816a2c1a27ca7b30d5587859fe8 (diff) | |
download | spice-46c70521d55ca649d94dd999986a6a4e91b15923.tar.gz spice-46c70521d55ca649d94dd999986a6a4e91b15923.tar.xz spice-46c70521d55ca649d94dd999986a6a4e91b15923.zip |
client/server: warning fixes (gcc 4.6.0)
gcc 4.6.0 added "[-Werror=unused-but-set-variable]", this and the next
few fixes tend to that. Mostly harmless.
Diffstat (limited to 'server/red_parse_qxl.c')
-rw-r--r-- | server/red_parse_qxl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/server/red_parse_qxl.c b/server/red_parse_qxl.c index 48b6c400..380765de 100644 --- a/server/red_parse_qxl.c +++ b/server/red_parse_qxl.c @@ -236,7 +236,7 @@ static SpiceClipRects *red_get_clip_rects(RedMemSlotInfo *slots, int group_id, RedDataChunk chunks; QXLClipRects *qxl; SpiceClipRects *red; - QXLRect *start, *end; + QXLRect *start; uint8_t *data; bool free_data; size_t size; @@ -254,7 +254,6 @@ static SpiceClipRects *red_get_clip_rects(RedMemSlotInfo *slots, int group_id, red->num_rects = qxl->num_rects; start = (QXLRect*)data; - end = (QXLRect*)(data + size); for (i = 0; i < red->num_rects; i++) { red_get_rect_ptr(red->rects + i, start++); } |