On Wed, 2011-07-27 at 11:20 +0200, Christophe Fergeau wrote: > 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
Out of curiosity as a programming ignoramus, is treating warnings as errors normal practice? - John _______________________________________________ Spice-devel mailing list Spice-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/spice-devel