R
Rui Maciel
While recompiling some code with g++ I've stumbled on the following warning:
<warning>
warning: deprecated conversion from string constant to ‘char*’
</warning>
The line in question points to a function that takes a parameter of type
char *, which is being called with a string literal being passed as a
parameter.
After a quick google, the suggested fix which pops out the most consists of
a convoluted cast, which doesn't look right to me.
So, does anyone happens to know how to fix this warning?
Thanks in advance,
Rui Maciel
<warning>
warning: deprecated conversion from string constant to ‘char*’
</warning>
The line in question points to a function that takes a parameter of type
char *, which is being called with a string literal being passed as a
parameter.
After a quick google, the suggested fix which pops out the most consists of
a convoluted cast, which doesn't look right to me.
So, does anyone happens to know how to fix this warning?
Thanks in advance,
Rui Maciel