[virt-tools-list] [PATCH virt-viewer] Make sure the compiler supports C99

Tiziano Müller tiziano.mueller at stepping-stone.ch
Fri Jun 13 14:14:15 UTC 2014



Am 13.06.2014 16:05, schrieb Christophe Fergeau:
> On Fri, Jun 13, 2014 at 03:50:08PM +0200, Tiziano Müller wrote:
>> Works for me, thanks.
> 
> I'm still curious how you got the build to fail in the first place?

Just checked the logs again: it seems the build environment in question also
passes --enable-compile-warnings=minimum
Sorry, my mistake, it wasn't the CFLAGS.

Tiziano

./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man
--infodir=/usr/share/info --
datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib
--disable-dependency-tracking --disable-sil
ent-rules --libdir=/usr/lib64 --docdir=/usr/share/doc/virt-viewer-0.6.0
--enable-compile-warnings=minimum
 --with-gtk-vnc --with-spice-gtk --with-gtk=3.0 --without-ovirt
--build=x86_64-pc-linux-gnu
[...]
virt-viewer-session.c: In function
'virt_viewer_session_on_monitor_geometry_changed':
virt-viewer-session.c:404:5: error: 'for' loop initial declarations are only
allowed in C99 mode
     for (GList *l = self->priv->displays; l; l = l->next) {
     ^
virt-viewer-session.c:404:5: note: use option -std=c99 or -std=gnu99 to compile
your code
[...]

-- 
stepping stone GmbH
Neufeldstrasse 9
CH-3012 Bern

Telefon: +41 31 332 53 63
www.stepping-stone.ch
tiziano.mueller@@stepping-stone.ch




More information about the virt-tools-list mailing list