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

Frediano Ziglio fziglio at redhat.com
Thu Oct 20 09:58:47 UTC 2016


> 
> I assume this is fixing a warning?
> 

Not exactly. This changes a possible linking error in
a compiler error.

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

Frediano

> 
> 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