Jiaoma / chipmunk-physics

Automatically exported from code.google.com/p/chipmunk-physics
MIT License
0 stars 0 forks source link

deprecated conversion from string constant to 'char*' #16

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Compile chipmunk on Mac using XCode
2.
3.

What is the expected output? What do you see instead?
Lots of warnings: deprecated conversion from string constant to 'char*'

What version of the product are you using? On what operating system?
Mac OSX 10.6.3
XCode 3.2.1 - GCC 4.2

Please provide any additional information below.
http://stackoverflow.com/questions/59670/how-to-get-rid-of-deprecated-conversion
-from-
string-constant-to-char-warning

Original issue reported on code.google.com by chinbill...@gmail.com on 11 Apr 2010 at 9:33

GoogleCodeExporter commented 8 years ago
It's a very simple solution, cpMessage (and anywhere else) just needs to 
receive const strings:

void cpMessage(const char *message, const char *condition, const char *file, 
int line, int isError);

Cheers. Good work BTW. :)

Original comment by chinbill...@gmail.com on 11 Apr 2010 at 9:34

GoogleCodeExporter commented 8 years ago
Should have all of these cleaned up now as it compiles without warning as C, 
C++, Obj-C and Obj-C++ as well as VC++ now.

Original comment by slemb...@gmail.com on 30 Jul 2010 at 1:23