Re: [PATCH] Rename 'index' in virCapabilitiesGetCpusForNode

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

 



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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]