Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2005:
[Freeciv-Dev] (PR#12012) packets.c compile warnings - signedness
Home

[Freeciv-Dev] (PR#12012) packets.c compile warnings - signedness

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#12012) packets.c compile warnings - signedness
From: "Brett Albertson" <brett.albertson@xxxxxxxxxxxx>
Date: Tue, 25 Jan 2005 13:24:20 -0800
Reply-to: bugs@xxxxxxxxxxx

<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




[Prev in Thread] Current Thread [Next in Thread]