[Spice-devel] [spice-common 1/8] Remove unused variable

Christophe Fergeau cfergeau at redhat.com
Mon Jan 6 03:22:07 PST 2014


It was assigned a value, but then the value was never used.
---
 common/lz_compress_tmpl.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/common/lz_compress_tmpl.c b/common/lz_compress_tmpl.c
index 2b66833..b5d0049 100644
--- a/common/lz_compress_tmpl.c
+++ b/common/lz_compress_tmpl.c
@@ -479,11 +479,9 @@ static void FNAME(compress)(Encoder *encoder)
     LzImageSegment    *cur_seg = encoder->head_image_segs;
     HashEntry        *hslot;
     PIXEL            *ip;
-    PIXEL            *ip_start;
 
     // fetch the first image segment that is not too small
     while (cur_seg && ((((PIXEL *)cur_seg->lines_end) - ((PIXEL *)cur_seg->lines)) < 4)) {
-        ip_start = (PIXEL *)cur_seg->lines;
         // coping the segment
         if (cur_seg->lines != cur_seg->lines_end) {
             ip = (PIXEL *)cur_seg->lines;
-- 
1.8.4.2



More information about the Spice-devel mailing list