[Spice-devel] [PATCH spice-gtk]channel-main.c: gssize type error with mingw32-gcc

Christophe Fergeau cfergeau at redhat.com
Mon Apr 7 00:50:15 PDT 2014


On Sun, Apr 06, 2014 at 02:03:10PM +0800, Cody Chan wrote:
> Here ,
> mingw32-configure --without-sasl --with-gtk=3.0 --with-audio=gstreamer
> --without-python --enable-usbredir=yes --enable-smartcard=no
> --enable-vala
> mingw32-make
> 
> There is a error:
> ......
>  CC       channel-webdav.lo
> channel-webdav.c: In function 'demux_to_client':
> channel-webdav.c:318:5: error: format '%ld' expects argument of type
> 'long int', but argument 5 has type 'gssize' [-Werror=format=]
>      CHANNEL_DEBUG(self, "pushing %ld to client %p", size, client);
>      ^
> cc1: all warnings being treated as errors
> make[4]: *** [channel-webdav.lo] Error 1

Should be fixed by
http://lists.freedesktop.org/archives/spice-devel/2014-April/016569.html
(make CFLAGS="-Wno-error" will probably avoid this breaking the build)

> ......
> Doc says: typedef signed int gssize;
> It's just a tiny bug, but it is strange that it's ok with gcc.

This is a platform dependent typedef, on my linux x86_64 machine it's:
typedef signed long gssize;

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20140407/678f4e72/attachment.sig>


More information about the Spice-devel mailing list