[Spice-devel] [PATCH spice-common] Define canvas_fix_alignment when is used
Pavel Grunt
pgrunt at redhat.com
Tue Apr 19 10:35:22 UTC 2016
It is used in canvas_get_lz4() which is guarded by USE_LZ4, and
in canvas_get_lz() which is guarded by SW_CANVAS_CACHE.
---
common/canvas_base.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/common/canvas_base.c b/common/canvas_base.c
index 45dd75f..114c1b9 100644
--- a/common/canvas_base.c
+++ b/common/canvas_base.c
@@ -515,6 +515,7 @@ static pixman_image_t *canvas_get_jpeg(CanvasBase *canvas, SpiceImage *image)
return surface;
}
+#if defined(USE_LZ4) || defined(SW_CANVAS_CACHE)
static void canvas_fix_alignment(uint8_t *bits,
int stride_encoded, int stride_pixman,
int height)
@@ -531,6 +532,7 @@ static void canvas_fix_alignment(uint8_t *bits,
}
}
}
+#endif
#ifdef USE_LZ4
static pixman_image_t *canvas_get_lz4(CanvasBase *canvas, SpiceImage *image)
--
2.8.1
More information about the Spice-devel
mailing list