URL:
  <http://gna.org/bugs/?11095>

                 Summary: compile warnings
                 Project: Warzone Resurrection Project
            Submitted by: pabs
            Submitted on: Tuesday 02/19/2008 at 05:02
                Category: Build system
                Severity: 2 - Minor
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 2.1_beta1
        Operating System: GNU/Linux
         Planned Release: None

    _______________________________________________________

Details:

Some warnings building i386 warzone beta 1 on Debian GNU/Linux. Build logs
for other architectures will be here after I upload it:

http://buildd.debian.org/~jeroen/status/package.php?p=warzone2100

i486-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..   -DNDEBUG
-DDATADIR="\"/usr/share/games/warzone2100\""
-DLOCALEDIR="\"/usr/share/locale\"" -DYY_NO_INPUT -I.. -D_GNU_SOURCE=1
-D_REENTRANT -I/usr/include/SDL   -I/usr/include/libpng12         -Wall -g
-O2  -g -Wall -MT droid.o -MD -MP -MF .deps/droid.Tpo -c -o droid.o droid.c
droid.c: In function 'checkDroidsBuilding':
droid.c:4551: warning: dereferencing type-punned pointer will break
strict-aliasing rules
droid.c: In function 'checkDroidsDemolishing':
droid.c:4571: warning: dereferencing type-punned pointer will break
strict-aliasing rules
droid.c: In function 'vtolReadyToRearm':
droid.c:4940: warning: dereferencing type-punned pointer will break
strict-aliasing rules

i486-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..   -DNDEBUG
-DDATADIR="\"/usr/share/games/warzone2100\""
-DLOCALEDIR="\"/usr/share/locale\"" -DYY_NO_INPUT -I.. -D_GNU_SOURCE=1
-D_REENTRANT -I/usr/include/SDL   -I/usr/include/libpng12         -Wall -g
-O2  -g -Wall -MT hci.o -MD -MP -MF .deps/hci.Tpo -c -o hci.o hci.c
hci.c: In function 'getConstructionStats':
hci.c:6085: warning: dereferencing type-punned pointer will break
strict-aliasing rules
hci.c:6088: warning: dereferencing type-punned pointer will break
strict-aliasing rules

i486-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..   -DNDEBUG
-DDATADIR="\"/usr/share/games/warzone2100\""
-DLOCALEDIR="\"/usr/share/locale\"" -DYY_NO_INPUT -I.. -D_GNU_SOURCE=1
-D_REENTRANT -I/usr/include/SDL   -I/usr/include/libpng12         -Wall -g
-O2  -g -Wall -MT intdisplay.o -MD -MP -MF .deps/intdisplay.Tpo -c -o
intdisplay.o intdisplay.c
intdisplay.c: In function 'intDisplayStatusButton':
intdisplay.c:812: warning: dereferencing type-punned pointer will break
strict-aliasing rules
intdisplay.c: In function 'intDisplayStatsButton':
intdisplay.c:1063: warning: dereferencing type-punned pointer will break
strict-aliasing rules
intdisplay.c: In function 'DroidIsDemolishing':
intdisplay.c:2517: warning: dereferencing type-punned pointer will break
strict-aliasing rules
intdisplay.c: In function 'DroidIsBuilding':
intdisplay.c:2565: warning: dereferencing type-punned pointer will break
strict-aliasing rules
intdisplay.c:2566: warning: dereferencing type-punned pointer will break
strict-aliasing rules
intdisplay.c: In function 'DroidGetBuildStructure':
intdisplay.c:2603: warning: dereferencing type-punned pointer will break
strict-aliasing rules
intdisplay.c:2604: warning: dereferencing type-punned pointer will break
strict-aliasing rules

i486-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..   -DNDEBUG
-DDATADIR="\"/usr/share/games/warzone2100\""
-DLOCALEDIR="\"/usr/share/locale\"" -DYY_NO_INPUT -I.. -D_GNU_SOURCE=1
-D_REENTRANT -I/usr/include/SDL   -I/usr/include/libpng12         -Wall -g
-O2  -g -Wall -MT multibot.o -MD -MP -MF .deps/multibot.Tpo -c -o multibot.o
multibot.c
multibot.c: In function 'recvDroidInfo':
multibot.c:809: warning: 'order' is used uninitialized in this function
multibot.c:817: warning: 'destType' is used uninitialized in this function
multibot.c: In function 'recvGroupOrder':
multibot.c:664: warning: 'order' is used uninitialized in this function
multibot.c:672: warning: 'destType' is used uninitialized in this function
multibot.c: In function 'recvDroidSecondary':
multibot.c:160: warning: 'sec' is used uninitialized in this function
multibot.c:161: warning: 'state' is used uninitialized in this function

i486-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..   -DNDEBUG
-DDATADIR="\"/usr/share/games/warzone2100\""
-DLOCALEDIR="\"/usr/share/locale\"" -DYY_NO_INPUT -I.. -D_GNU_SOURCE=1
-D_REENTRANT -I/usr/include/SDL   -I/usr/include/libpng12         -Wall -g
-O2  -g -Wall -MT objmem.o -MD -MP -MF .deps/objmem.Tpo -c -o objmem.o
objmem.c
objmem.c: In function 'killDroid':
objmem.c:437: warning: dereferencing type-punned pointer will break
strict-aliasing rules
objmem.c: In function 'freeAllDroids':
objmem.c:443: warning: dereferencing type-punned pointer will break
strict-aliasing rules
objmem.c: In function 'freeAllLimboDroids':
objmem.c:473: warning: dereferencing type-punned pointer will break
strict-aliasing rules
objmem.c: In function 'addStructure':
objmem.c:487: warning: dereferencing type-punned pointer will break
strict-aliasing rules
objmem.c: In function 'killStruct':
objmem.c:540: warning: dereferencing type-punned pointer will break
strict-aliasing rules
objmem.c: In function 'freeAllStructs':
objmem.c:546: warning: dereferencing type-punned pointer will break
strict-aliasing rules
objmem.c: In function 'addFeature':
objmem.c:570: warning: dereferencing type-punned pointer will break
strict-aliasing rules
objmem.c: In function 'killFeature':
objmem.c:581: warning: dereferencing type-punned pointer will break
strict-aliasing rules
objmem.c: In function 'freeAllFeatures':
objmem.c:587: warning: dereferencing type-punned pointer will break
strict-aliasing rules

i486-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..   -DNDEBUG
-DDATADIR="\"/usr/share/games/warzone2100\""
-DLOCALEDIR="\"/usr/share/locale\"" -DYY_NO_INPUT -I.. -D_GNU_SOURCE=1
-D_REENTRANT -I/usr/include/SDL   -I/usr/include/libpng12         -Wall -g
-O2  -g -Wall -MT order.o -MD -MP -MF .deps/order.Tpo -c -o order.o order.c
order.c: In function 'checkForRepairRange':
order.c:191: warning: dereferencing type-punned pointer will break
strict-aliasing rules

i486-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..   -DNDEBUG
-DDATADIR="\"/usr/share/games/warzone2100\""
-DLOCALEDIR="\"/usr/share/locale\"" -DYY_NO_INPUT -I.. -D_GNU_SOURCE=1
-D_REENTRANT -I/usr/include/SDL   -I/usr/include/libpng12         -Wall -g
-O2  -g -Wall -MT scriptobj.o -MD -MP -MF .deps/scriptobj.Tpo -c -o
scriptobj.o scriptobj.c
scriptobj.c: In function 'scrValDefLoad':
scriptobj.c:1349: warning: dereferencing type-punned pointer will break
strict-aliasing rules

i486-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..   -DNDEBUG
-DDATADIR="\"/usr/share/games/warzone2100\""
-DLOCALEDIR="\"/usr/share/locale\"" -DYY_NO_INPUT -I.. -D_GNU_SOURCE=1
-D_REENTRANT -I/usr/include/SDL   -I/usr/include/libpng12         -Wall -g
-O2  -g -Wall -MT game.o -MD -MP -MF .deps/game.Tpo -c -o game.o game.c
game.c: In function 'buildDroidFromSaveDroidV19':
game.c:5501: warning: dereferencing type-punned pointer will break
strict-aliasing rules
game.c:5543: warning: dereferencing type-punned pointer will break
strict-aliasing rules
game.c:5577: warning: dereferencing type-punned pointer will break
strict-aliasing rules
game.c: In function 'buildDroidFromSaveDroid':
game.c:5901: warning: dereferencing type-punned pointer will break
strict-aliasing rules
game.c:5933: warning: dereferencing type-punned pointer will break
strict-aliasing rules
game.c:5950: warning: dereferencing type-punned pointer will break
strict-aliasing rules
game.c:5951: warning: dereferencing type-punned pointer will break
strict-aliasing rules
game.c: In function 'loadSaveStructureV19':
game.c:7466: warning: dereferencing type-punned pointer will break
strict-aliasing rules
game.c: In function 'loadSaveStructureV':
game.c:7897: warning: dereferencing type-punned pointer will break
strict-aliasing rules
game.c:7919: warning: dereferencing type-punned pointer will break
strict-aliasing rules
game.c:8004: warning: dereferencing type-punned pointer will break
strict-aliasing rules
game.c:8021: warning: dereferencing type-punned pointer will break
strict-aliasing rules
game.c: In function 'loadSaveMessageV':
game.c:10479: warning: dereferencing type-punned pointer will break
strict-aliasing rules
game.c: In function 'writeMessageFile':
game.c:10644: warning: dereferencing type-punned pointer will break
strict-aliasing rules
game.c: In function 'loadSaveFlagV':
game.c:10734: warning: dereferencing type-punned pointer will break
strict-aliasing rules
game.c: In function 'writeFlagFile':
game.c:10934: warning: dereferencing type-punned pointer will break
strict-aliasing rules
game.c:10985: warning: dereferencing type-punned pointer will break
strict-aliasing rules

i486-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..   -DNDEBUG
-DDATADIR="\"/usr/share/games/warzone2100\""
-DLOCALEDIR="\"/usr/share/locale\"" -DYY_NO_INPUT -I.. -D_GNU_SOURCE=1
-D_REENTRANT -I/usr/include/SDL   -I/usr/include/libpng12         -Wall -g
-O2  -g -Wall -MT mission.o -MD -MP -MF .deps/mission.Tpo -c -o mission.o
mission.c
mission.c: In function 'saveMissionData':
mission.c:862: warning: dereferencing type-punned pointer will break
strict-aliasing rules
mission.c:914: warning: dereferencing type-punned pointer will break
strict-aliasing rules
mission.c: In function 'missionResetDroids':
mission.c:2140: warning: dereferencing type-punned pointer will break
strict-aliasing rules

i486-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..   -DNDEBUG
-DDATADIR="\"/usr/share/games/warzone2100\""
-DLOCALEDIR="\"/usr/share/locale\"" -DYY_NO_INPUT -I.. -D_GNU_SOURCE=1
-D_REENTRANT -I/usr/include/SDL   -I/usr/include/libpng12         -Wall -g
-O2  -g -Wall -MT multigifts.o -MD -MP -MF .deps/multigifts.Tpo -c -o
multigifts.o multigifts.c
multigifts.c: In function 'recvMultiPlayerFeature':
multigifts.c:665: warning: 'subType' is used uninitialized in this function
multigifts.c: In function 'recvMultiPlayerRandomArtifacts':
multigifts.c:749: warning: 'type' is used uninitialized in this function

i486-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..   -DNDEBUG
-DDATADIR="\"/usr/share/games/warzone2100\""
-DLOCALEDIR="\"/usr/share/locale\"" -DYY_NO_INPUT -I.. -D_GNU_SOURCE=1
-D_REENTRANT -I/usr/include/SDL   -I/usr/include/libpng12         -Wall -g
-O2  -g -Wall -MT multiplay.o -MD -MP -MF .deps/multiplay.Tpo -c -o
multiplay.o multiplay.c
multiplay.c: In function 'sendTemplate':
multiplay.c:1368: warning: dereferencing type-punned pointer will break
strict-aliasing rules
multiplay.c: In function 'recvTemplate':
multiplay.c:1406: warning: dereferencing type-punned pointer will break
strict-aliasing rules

i486-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..   -DNDEBUG
-DDATADIR="\"/usr/share/games/warzone2100\""
-DLOCALEDIR="\"/usr/share/locale\"" -DYY_NO_INPUT -I.. -D_GNU_SOURCE=1
-D_REENTRANT -I/usr/include/SDL   -I/usr/include/libpng12         -Wall -g
-O2  -g -Wall -MT structure.o -MD -MP -MF .deps/structure.Tpo -c -o
structure.o structure.c
structure.c: In function 'findAssemblyPointPosition':
structure.c:5265: warning: dereferencing type-punned pointer will break
strict-aliasing rules
structure.c:5279: warning: dereferencing type-punned pointer will break
strict-aliasing rules





    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?11095>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev

Reply via email to