gcc 4.6 warning report

Juan Lang juan.lang at gmail.com
Tue Jun 28 17:18:47 CDT 2011

>> This is a false positive.  h_addr_list is declared as a char **, and
>> technically it is, but gethostbyname only returns IPv4 addresses, i.e.
>> ones that can fit in a DWORD.
> That doesn't sound like a problem that would give that warning.

Why not?  A cast of a pointer to a DWORD with 64-bit pointers would
cause truncation, if it were indeed a pointer that were being cast.
It isn't, even though it's declared that way.

More information about the wine-devel mailing list