[libvirt] [PATCH] Rename 'index' in virCapabilitiesGetCpusForNode

Daniel P. Berrange berrange at redhat.com
Tue Feb 11 15:52:09 UTC 2014


On Tue, Feb 11, 2014 at 04:39:47PM +0100, Ján Tomko wrote:
> This shadows the index function on some systems (RHEL-6.4, FreeBSD 9):
> ../../src/conf/capabilities.c: In function 'virCapabilitiesGetCpusForNode':
> ../../src/conf/capabilities.c:1005: warning: declaration of'index'
>       shadows a global declaration [-Wshadow]
> /usr/include/strings.h:57: warning: shadowed declaration is here [-Wshadow]

Doh, anyone fancy coming up with a sytnax-check rule to
prevent use of 'index' and 'remove' :-)

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the libvir-list mailing list