I recently upgraded to gcc4.3, and the following warning appears after that.
I think this happened by writing char*
where you need to write const char*
.
My code is really long. (Almost 500 files)
Cannot change to const
one by one.
But I have to write -error
If there is warning
, it cannot be compiled.
Is there a good way?
`warning: deprecated conversion from string constant to ‘char*’
string c++ gcc warning const-char
Try the following two methods
© 2024 OneMinuteCode. All rights reserved.