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

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



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 redhat com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


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