]> xenbits.xensource.com Git - people/dariof/libvirt.git/commit
maint: avoid C99 loop declaration
authorEric Blake <eblake@redhat.com>
Wed, 7 Aug 2013 22:44:58 +0000 (16:44 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 7 Aug 2013 22:50:42 +0000 (16:50 -0600)
commited7e7c7d1058c64ef15114b691cf80e380596483
tree4174183065df3654f57aecfd1d69dfa9c4f942a5
parentff38690be97088a399d3a7eab4a3b07f9194ab70
maint: avoid C99 loop declaration

Commit 3d0e3c1 reintroduced a problem previously squelched in
commit 7e5aa78.  Add a syntax check this time around.

util/virutil.c: In function 'virGetGroupList':
util/virutil.c:1015: error: 'for' loop initial declaration used outside C99 mode

* cfg.mk (sc_prohibit_loop_var_decl): New rule.
* src/util/virutil.c (virGetGroupList): Fix offender.

Signed-off-by: Eric Blake <eblake@redhat.com>
cfg.mk
src/util/virutil.c