[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
warning in test-sys_socket
From: |
Bruno Haible |
Subject: |
warning in test-sys_socket |
Date: |
Thu, 5 Nov 2009 11:38:32 +0100 |
User-agent: |
KMail/1.9.9 |
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?
Bruno
- warning in test-sys_socket,
Bruno Haible <=