compiling r5555 with warnings

For test results, bug reports, announcements of new builds etc.

Moderators: winston, another_commander, Getafix

Post Reply
User avatar
Richard-H
Above Average
Above Average
Posts: 31
Joined: Tue Dec 28, 2010 10:04 am
Location: Somwere in G6

compiling r5555 with warnings

Post by Richard-H »

After looking at the last build at:
http://terrastorage.ath.cx/oolite/status.html

if i look at the last build page r5555 was the last good build on the build machine but if i try it i have 2 warnings

I am running Linux slackware 13.37 with kernel 3.2.29

libs & versions

part of slackware :
GNU Objective-C compiler (gcc-objc) version 4.5.2
SDL development libraries 1.2.14
SDL_mixer
SDL_image

not part of the slackware distribution :
gnustep-make 2.4.0
gnustep-base 1.20.1
gnustep-gui 0.18.0
gnustep-back 0.18.0
portaudio pa_stable_v19_20071207
espeak 1.42
nspr 4.8.7

the warnings

Compiling file src/Core/Entities/ShipEntity.m ...
src/Core/Entities/ShipEntity.m: In function '-[ShipEntity firePlasmaShotAtOffset:speed:color:direction:]':
src/Core/Entities/ShipEntity.m:10394:17: warning: comparison between 'OOWeaponFacing' and 'enum <anonymous>'

and

Compiling file src/Core/Entities/OOFlasherEntity.m ...
src/Core/Entities/OOFlasherEntity.m: In function '-[OOFlasherEntity update:]':
src/Core/Entities/OOFlasherEntity.m:124:18: warning: operation on 'self->_activeColor' may be undefined


the strange thing is that except the slack native packages i used the extra packages for some time never had any problems with them and oolite.
I needed to upgrade my distribution because my old machine went up in smoke after a lighting strike


help ;)

edit. to manny 5's in the subject line
Richard

The only reason I recognize typos is because I make so many of them myself ...
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6634
Joined: Wed Feb 28, 2007 7:54 am

Re: compiling r5555 with warnings

Post by another_commander »

The nightly builds are produced using GCC 4.2.4 on Linux. You are using version 4.5.2, which apparently catches some things better.

There are even more warnings reported if you build with GCC 4.7.x (mostly about variables being set but not used). We will look at all of them at some point but for now most of these warnings are pretty harmless. Possible exception is the one about the undefined operation on self->_activeColor.
User avatar
Richard-H
Above Average
Above Average
Posts: 31
Joined: Tue Dec 28, 2010 10:04 am
Location: Somwere in G6

Re: compiling r5555 with warnings

Post by Richard-H »

another_commander wrote:
The nightly builds are produced using GCC 4.2.4 on Linux. You are using version 4.5.2, which apparently catches some things better.

There are even more warnings reported if you build with GCC 4.7.x (mostly about variables being set but not used). We will look at all of them at some point but for now most of these warnings are pretty harmless. Possible exception is the one about the undefined operation on self->_activeColor.
thanks for the explanation another_commander
Richard

The only reason I recognize typos is because I make so many of them myself ...
User avatar
Richard-H
Above Average
Above Average
Posts: 31
Joined: Tue Dec 28, 2010 10:04 am
Location: Somwere in G6

Re: compiling r5555 with warnings

Post by Richard-H »

devs

in r5564 all warnings are gone
thanks for fixing even if it are warnings
Richard

The only reason I recognize typos is because I make so many of them myself ...
Post Reply