[Spice-devel] [PATCH spice-server 08/12] Do not declare image_encoders_compress_lz4 if LZ4 is not available

Jonathon Jongsma jjongsma at redhat.com
Wed Oct 19 21:20:10 UTC 2016


I assume this is fixing a warning?

Acked-by: Jonathon Jongsma <jjongsma at redhat.com>


On Tue, 2016-10-18 at 10:09 +0100, Frediano Ziglio wrote:
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> ---
>  server/image-encoders.h | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/server/image-encoders.h b/server/image-encoders.h
> index 6b4999e..a755bf3 100644
> --- a/server/image-encoders.h
> +++ b/server/image-encoders.h
> @@ -202,8 +202,10 @@ int image_encoders_compress_lz(ImageEncoders
> *enc, SpiceImage *dest,
>                                 SpiceBitmap *src,
> compress_send_data_t* o_comp_data);
>  int image_encoders_compress_jpeg(ImageEncoders *enc, SpiceImage
> *dest,
>                                   SpiceBitmap *src,
> compress_send_data_t* o_comp_data);
> +#ifdef USE_LZ4
>  int image_encoders_compress_lz4(ImageEncoders *enc, SpiceImage
> *dest,
>                                  SpiceBitmap *src,
> compress_send_data_t* o_comp_data);
> +#endif
>  int image_encoders_compress_glz(ImageEncoders *enc, SpiceImage
> *dest,
>                                  SpiceBitmap *src,
>                                  RedDrawable *red_drawable,


More information about the Spice-devel mailing list