Re: [PATCH 2/3] Avoid compiler warnings about int -> void * casts

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

 



On 04/05/2011 09:03 AM, Daniel P. Berrange wrote:
> GCC is a little confused about the cast of beginthread/beginthreadex
> from unsigned long -> void *. Go via an intermediate variable avoids
> the bogus warning, and makes the code a little cleaner
> 
> * src/util/threads-win32.c: Avoid compiler warning in cast
> ---
>  src/util/threads-win32.c |   18 +++++++++++-------
>  1 files changed, 11 insertions(+), 7 deletions(-)

ACK.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
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]