[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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 :|


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]