[Spice-devel] Error compiling Spice

Christophe Fergeau cfergeau at redhat.com
Wed Jul 27 02:20:15 PDT 2011


Hi,

On Wed, Jul 27, 2011 at 11:09:01AM +0200, Andrea Celestino wrote:
> I have downloaded from git the spice code, the spice protocol and pixman. I
> have installed pixman first then the protocol and finally the spice server
> and client(with bulding instructions in the wiki page). When I compile spice
> server and client I see a compiling error.
> I do "configure" then "make"  but the terminal show me:
> 
> 
>   CC     glz_encoder_dictionary.lo
> cc1: warnings being treated as errors
> glz_encoder_dictionary.c: In function ‘glz_dictionary_pre_encode’:
> glz_encoder_dictionary.c:488:22: error: ‘prev_seg_id’ may be used
> uninitialized in this function

Looking at the code, prev_seg_id initialization is a bit convoluted, but I
think this warning is a false positive. We could intialize it to 0 to make
it disappear. What gcc version are you using?
You can avoid the compilation failing on this warning by passing
--disable-werror to configure/autogen.sh

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20110727/6b14d3a8/attachment.pgp>


More information about the Spice-devel mailing list