[Freeciv-Dev] (PR#12012) packets.c compile warnings - signedness
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12012 >
I upgraded my gcc compiler to the latest snapshot of 4.0 and am now
receiving some interesting warnings in packets.c. This is on the Sparc
Solaris platform.
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I../utility -I./aicore
-mcpu=v9 -O3 -Wall -Wpointer-arith -Wcast-align -Wmissing-prototypes
-Wmissing-declarations -MT packets.o -MD -MP -MF ".deps/packets.Tpo" -c
-o packets.o packets.c; \
then mv -f ".deps/packets.Tpo" ".deps/packets.Po"; else rm -f
".deps/packets.Tpo"; exit 1; fi
packets.c: In function 'send_packet_data':
packets.c:168: warning: pointer targets in passing argument 1 of
'compress2' differ in signedness
packets.c:168: warning: pointer targets in passing argument 2 of
'compress2' differ in signedness
packets.c:189: warning: pointer targets in passing argument 2 of
'send_connection_data' differ in signedness
packets.c:199: warning: pointer targets in passing argument 2 of
'send_connection_data' differ in signedness
packets.c: In function 'get_packet_from_connection':
packets.c:383: warning: pointer targets in passing argument 2 of
'uncompress' differ in signedness
I think the old big-endian little-endian conversion strikes again!
--
Brett Albertson
- [Freeciv-Dev] (PR#12012) packets.c compile warnings - signedness,
Brett Albertson <=
|
|