Re: "shadows a global declaration" warnings in virsh

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

 



2010/12/3 Justin Clift <jclift@xxxxxxxxxx>:
> On 03/12/2010, at 8:40 PM, Osier Yang wrote:
>> ä 2010å12æ03æ 16:52, Justin Clift åé:
>>> Hi all,
>>>
>>> Started seeing these warnings when compiling virsh:
>>>
>>> Â virsh.c: In function 'cmdRunConsole':
>>> Â virsh.c:735: warning: declaration of 'devname' shadows a global declaration [-Wshadow]
>>> Â /usr/include/stdlib.h:290: warning: shadowed declaration is here [-Wshadow]
>>> Â virsh.c: In function 'cmdConsole':
>>> Â virsh.c:765: warning: declaration of 'devname' shadows a global declaration [-Wshadow]
>>> Â /usr/include/stdlib.h:290: warning: shadowed declaration is here [-Wshadow]
>>> Â virsh.c: In function 'vshReadlineInit':
>>> Â virsh.c:11575: warning: assignment discards qualifiers from pointer target type
>>>
>>> Haven't looked into it yet as they're only warnings. ÂAnyone know if they're important enough
>>> to look into?
>>>
>> it works fine for me, even I set "./confugure --enable-compile-warnings=maximum".
>
> Sorry, should have mentioned that they're only showing up in OSX, but not in Fedora 13. :)
>

IIRC, it had the same warning on FreeBSD, I just didn't post a patch for it yet.

Matthias

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