Compilation warnings with gcc 4.2 => script to automate fix ?
Annick et Jean-Philippe <[email protected]>
| Newsgroups | gmane.games.torcs.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi all. No a big pb ;-), but one day or another, it will be a compilation error : nearly everywhere in torcs code, my gcc 4.2.2 issues the following warning : Warning : deprecated conversion from string constant to 'char*' Has anyone already fixed this future pb ? If not, may I suggest to change nearly everywhere the way strings are passed as parameters from "char *" to "const char *" ? Of course, I'm conscious that its would change nearly every source file in Torcs, so I propose to try and build a script to automatically and intelligently make the changes (if possible) ; that way, we would be free to simply test it home, and then one day decide when we want that massive commit (right before a release ?). Thanks for you input. Jean-Philippe. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/