summaryrefslogtreecommitdiffstats
path: root/server/glz_encoder_dictionary_protected.h
diff options
context:
space:
mode:
authorVictor Toso <victortoso@redhat.com>2015-08-14 18:24:26 +0200
committerFrediano Ziglio <fziglio@redhat.com>2015-08-20 11:09:00 +0100
commit2413484305fde600e9b4496a88beac365a7a16ff (patch)
treeb8b0dda67e30c0f1d4de473eaa664a545e7037ee /server/glz_encoder_dictionary_protected.h
parentfd75632a8f169dfc6d1fc5cb0a30bf4064cd7bce (diff)
downloadspice-2413484305fde600e9b4496a88beac365a7a16ff.tar.gz
spice-2413484305fde600e9b4496a88beac365a7a16ff.tar.xz
spice-2413484305fde600e9b4496a88beac365a7a16ff.zip
glz: WindowImageSegment lines lines_end as void*
Instead of using uint8_t* which can cause several warnings on casting as the example below: ./glz_encode_tmpl.c:321:29: error: cast from 'uint8_t *' (aka 'unsigned char *') to 'rgb16_pixel_t *' (aka 'unsigned short *') increases required alignment from 1 to 2 [-Werror,-Wcast-align] ref_limit = (PIXEL *)(seg->lines_end); ^~~~~~~~~~~~~~~~~~~~~~~~~
Diffstat (limited to 'server/glz_encoder_dictionary_protected.h')
-rw-r--r--server/glz_encoder_dictionary_protected.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/glz_encoder_dictionary_protected.h b/server/glz_encoder_dictionary_protected.h
index ee1f8d8e..098684f6 100644
--- a/server/glz_encoder_dictionary_protected.h
+++ b/server/glz_encoder_dictionary_protected.h
@@ -61,8 +61,8 @@ struct WindowImage {
An encoded match can refer to only one segment.*/
struct WindowImageSegment {
WindowImage *image;
- uint8_t *lines;
- uint8_t *lines_end;
+ void *lines;
+ void *lines_end;
uint32_t pixels_num; // Number of pixels in the segment
uint64_t pixels_so_far; // Total no. pixels passed through the window till this segment.
// NOTE - never use size delta independently. It should