summaryrefslogtreecommitdiffstats
path: root/server/red_worker.c
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2011-01-24 18:17:34 +0200
committerAlon Levy <alevy@redhat.com>2011-01-27 12:48:25 +0200
commit54c91e89fbe93107d13e9a10acea85227ebe9735 (patch)
tree6c751f0aec339d8934e70248697a76d9bcf4d54f /server/red_worker.c
parenta7b66f77ba091479ced631fb31d7b9ad4fd94775 (diff)
downloadspice-54c91e89fbe93107d13e9a10acea85227ebe9735.tar.gz
spice-54c91e89fbe93107d13e9a10acea85227ebe9735.tar.xz
spice-54c91e89fbe93107d13e9a10acea85227ebe9735.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_worker.c')
-rw-r--r--server/red_worker.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/server/red_worker.c b/server/red_worker.c
index dc7bc9ef..f899ff2d 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -4512,7 +4512,6 @@ static void red_add_surface_image(RedWorker *worker, int surface_id)
{
SpiceRect area;
RedSurface *surface;
- ImageItem *item;
surface = &worker->surfaces[surface_id];
@@ -4526,7 +4525,7 @@ static void red_add_surface_image(RedWorker *worker, int surface_id)
/* not allowing lossy compression because probably, especially if it is a primary surface,
it combines both "picture-like" areas with areas that are more "artificial"*/
- item = red_add_surface_area_image(worker, surface_id, &area, NULL, FALSE);
+ red_add_surface_area_image(worker, surface_id, &area, NULL, FALSE);
display_channel_push(worker);
}
@@ -4659,15 +4658,12 @@ static void red_display_reset_compress_buf(DisplayChannel *display_channel)
in the channel (2) to the Drawable*/
static RedGlzDrawable *red_display_get_glz_drawable(DisplayChannel *channel, Drawable *drawable)
{
- RedSurface *surface;
RedGlzDrawable *ret;
if (drawable->red_glz_drawable) {
return drawable->red_glz_drawable;
}
- surface = &channel->base.worker->surfaces[drawable->surface_id];
-
ret = spice_new(RedGlzDrawable, 1);
ret->display_channel = channel;
@@ -5921,15 +5917,11 @@ static FillBitsType fill_bits(DisplayChannel *display_channel, SpiceMarshaller *
global dictionary (in cases of multiple monitors) */
if (!red_compress_image(display_channel, &image, &simage->u.bitmap,
drawable, can_lossy, &comp_send_data)) {
- uint32_t y;
- uint32_t stride;
SpicePalette *palette;
red_display_add_image_to_pixmap_cache(display_channel, simage, &image, FALSE);
*bitmap = simage->u.bitmap;
- y = bitmap->y;
- stride = bitmap->stride;
bitmap->flags = bitmap->flags & SPICE_BITMAP_FLAGS_TOP_DOWN;
palette = bitmap->palette;
@@ -7734,11 +7726,7 @@ static inline int red_send_stream_data(DisplayChannel *display_channel, Drawable
static inline void send_qxl_drawable(DisplayChannel *display_channel, Drawable *item)
{
- RedChannel *channel;
-
ASSERT(display_channel);
- channel = &display_channel->base;
-
if (item->stream && red_send_stream_data(display_channel, item)) {
return;
}