[libvirt] "shadows a global declaration" warnings in virsh

Osier Yang jyang at redhat.com
Fri Dec 3 09:40:31 UTC 2010


于 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".

- Osier




More information about the libvir-list mailing list