[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: warning in test-sys_socket
From: |
Simon Josefsson |
Subject: |
Re: warning in test-sys_socket |
Date: |
Thu, 05 Nov 2009 13:55:29 +0100 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) |
Bruno Haible <address@hidden> writes:
> Hi Simon,
>
> On MacOS X 10.3, with "gcc -Wall", I'm seeing this warning:
>
> test-sys_socket.c: In function `main':
> test-sys_socket.c:50: warning: large integer implicitly truncated to unsigned
> type
>
> The reason is that sa_family_t is an 8-bit type, and assigning a value
> larger than 256 to it obviously warrants a warning. How about using a
> smaller integer instead?
Definitely, I have pushed a fix.
/Simon