[Spice-devel] [PATCH] tests: fix compilation with -Wall -Werror
Christophe Fergeau
cfergeau at gmail.com
Tue Mar 22 03:21:54 PDT 2011
On Mon, Mar 21, 2011 at 06:47:19PM +0100, Christophe Fergeau wrote:
> > On Mon, Mar 21, 2011 at 05:24:54PM +0200, Alon Levy wrote:
> >
> > btw, while you're at it, mind trying to compile with clang?
>
> I ran some tests, spice compiled fine with clang using make CC="clang"
> CXX=clang++ CFLAGS="-Wall -Werror -g3 -ggdb3 -O3" CXXFLAGS="-Wall -Werror
> -g3 -ggdb3 -O3", I don't know if there is a magical "clang warning" flags
> to set in addition to that.
> I hit a compilation error with spice-gtk which I'm trying to figure out.
The compilation error was due to a warning coming from the use of
G_DEFINE_BOXED_TYPE, I reported the issue here
https://bugzilla.gnome.org/show_bug.cgi?id=449565#c53
After hacking around it, the compilation works fine.
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/20110322/ffff29e5/attachment.pgp>
More information about the Spice-devel
mailing list