Menu

#2 GCC warnings with gravitation

open
nobody
None
5
2009-03-08
2009-03-08
Paul Wise
No

This is with g++ -Wall:

game.cpp: In function 'int mainFunction(int, char**)':
game.cpp:388: warning: deprecated conversion from string constant to 'char*'
game.cpp:391: warning: deprecated conversion from string constant to 'char*'
game.cpp:419: warning: deprecated conversion from string constant to 'char*'
game.cpp:501: warning: deprecated conversion from string constant to 'char*'
game.cpp: In function 'char playGame()':
game.cpp:667: warning: deprecated conversion from string constant to 'char*'
map.cpp: In function 'void loadMapGraphics()':
map.cpp:15: warning: deprecated conversion from string constant to 'char*'
World.cpp: In function 'void sampleFromWorld(int, int, int, int, Uint32*)':
World.cpp:689: warning: suggest parentheses around && within ||
World.cpp:691: warning: suggest parentheses around && within ||
World.cpp:696: warning: suggest parentheses around && within ||
World.cpp:698: warning: suggest parentheses around && within ||
World.cpp: In function 'void loadWorldGraphics()':
World.cpp:994: warning: deprecated conversion from string constant to 'char*'
World.cpp:1007: warning: deprecated conversion from string constant to 'char*'
World.cpp:1009: warning: deprecated conversion from string constant to 'char*'
World.cpp:1010: warning: deprecated conversion from string constant to 'char*'
World.cpp:1012: warning: deprecated conversion from string constant to 'char*'
World.cpp:1013: warning: deprecated conversion from string constant to 'char*'
World.cpp:1015: warning: deprecated conversion from string constant to 'char*'
World.cpp:1019: warning: deprecated conversion from string constant to 'char*'
World.cpp:1020: warning: deprecated conversion from string constant to 'char*'
World.cpp:1022: warning: deprecated conversion from string constant to 'char*'
World.cpp:1023: warning: deprecated conversion from string constant to 'char*'
World.cpp:1024: warning: deprecated conversion from string constant to 'char*'
World.cpp:1025: warning: deprecated conversion from string constant to 'char*'
World.cpp:1032: warning: deprecated conversion from string constant to 'char*'
Gradient.cpp: In member function 'rgbColor Gradient::sample(double)':
Gradient.cpp:24: warning: 'closestPointBelow' may be used uninitialized in this function
Gradient.cpp:23: warning: 'closestPointAbove' may be used uninitialized in this function
In file included from common.cpp:6:
../../minorGems/io/file/File.h: In member function 'File* File::getParentDirectory()':
../../minorGems/io/file/File.h:645: warning: deprecated conversion from string constant to 'char*'
../../minorGems/io/file/File.h:674: warning: deprecated conversion from string constant to 'char*'
common.cpp: In function 'Image* readTGA(char*)':
common.cpp:13: warning: deprecated conversion from string constant to 'char*'
musicPlayer.cpp: In function 'void loadMusicImage(char*)':
musicPlayer.cpp:396: warning: deprecated conversion from string constant to 'char*'
../../minorGems/util/stringUtils.cpp: In function 'char* concatonate(char*, char*)':
../../minorGems/util/stringUtils.cpp:178: warning: deprecated conversion from string constant to 'char*'
In file included from ../../minorGems/util/SettingsManager.cpp:28:
../../minorGems/io/file/File.h: In member function 'File* File::getParentDirectory()':
../../minorGems/io/file/File.h:645: warning: deprecated conversion from string constant to 'char*'
../../minorGems/io/file/File.h:674: warning: deprecated conversion from string constant to 'char*'

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.