Re: [PATCH] Fix unused parameters / functions in virsh on Win32

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

 



On 06/21/2012 07:47 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
> 
> The vshPrintRaw function is not used on Win32, and neither
> is the 'msg' parameter of vshAskReedit. Change the nesting
> of #ifdef WIN32 conditionals to address this
> ---
>  tools/virsh.c |    8 ++++++--
>  1 file changed, 6 insertions(+), 2 deletions(-)

ACK.  However,.


>      return c;
> +}
>  #else
> +static int
> +vshAskReedit(vshControl *ctl, const char *msg ATTRIBUTE_UNUSED)
> +{
>      vshDebug(ctl, VSH_ERR_WARNING, "%s", _("This function is not "
>                                             "supported on WIN32 platform"));
>      return 0;
> -#endif
>  }
> +#endif

now that these are starting to get further away from the #if, it might
help to add a comment explaining what this #else and #endif pair to.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-919-301-3266
Libvirt virtualization library http://libvirt.org



Attachment: signature.asc
Description: OpenPGP digital signature

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