Re: Commited changes on branch r1-3-1, please test

Frieder Ferlemann <[email protected]> Sat, 03 Jan 2009 00:46:19 +0100
Newsgroups gmane.games.torcs.devel
Organization schlecht organisiert
Message-ID <[email protected]>
Hi,

Bernhard Wymann schrieb:
> Hi all
> 
> I committed the following changes (check out branch r1-3-1):
> 
> - Fixed remaining const char* gcc warnings.

there are some (very few) warnings left here with:
gcc (SUSE Linux) 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision 135036]

namely:
img.cpp: In function ‘unsigned char* GfImgReadPng(const char*, int*, int*, float)’:
img.cpp:158: warning: format ‘%u’ expects type ‘unsigned int’, but argument 3 has type ‘png_uint_32’
img.cpp:158: warning: format ‘%u’ expects type ‘unsigned int’, but argument 4 has type ‘long unsigned int’

CarSoundData.cpp: In member function ‘void CarSoundData::calculateTyreSound(tCarElt*)’:
CarSoundData.cpp:205: warning: suggest parentheses around && within ||

TorcsSound.cpp: In constructor ‘OpenalTorcsSound::OpenalTorcsSound(const char*, OpenalSoundInterface*, int, bool, bool)’:
TorcsSound.cpp:333: warning: ‘void alutLoadWAVFile(ALbyte*, ALenum*, void**, ALsizei*, ALsizei*, ALboolean*)’ is deprecated (declared at /usr/include/AL/alut.h:113)
TorcsSound.cpp:333: warning: ‘void alutLoadWAVFile(ALbyte*, ALenum*, void**, ALsizei*, ALsizei*, ALboolean*)’ is deprecated (declared at /usr/include/AL/alut.h:113)
TorcsSound.cpp:357: warning: ‘void alutUnloadWAV(ALenum, ALvoid*, ALsizei, ALsizei)’ is deprecated (declared at /usr/include/AL/alut.h:116)
TorcsSound.cpp:357: warning: ‘void alutUnloadWAV(ALenum, ALvoid*, ALsizei, ALsizei)’ is deprecated (declared at /usr/include/AL/alut.h:116)

mainaccc.cpp: In function ‘void init_args(int, char**)’:
mainaccc.cpp:256: warning: suggest explicit braces to avoid ambiguous ‘else’

ac3dload.cpp: In function ‘int doKids(char*, ob_t*, mat_t*)’:
ac3dload.cpp:770: warning: suggest explicit braces to avoid ambiguous ‘else’

Thanks again and a good new year!

Greetings,
Frieder

------------------------------------------------------------------------------