Issue:
warning: deprecated conversion from string constant to 'char*'
warning: deprecated conversion from string constant to 'char*'
warning: deprecated conversion from string constant to 'char*'
Solution:
Happens on compiling with gcc v4.3.3.
Change [char *] to [const char *].
0 意見:
張貼留言