Possible Duplicate:
How to get rid ofdeprecated conversion from string constant to ‘char*’
warnings in GCC?
I use following function from library which i cannot change:
HRESULT DynamicTag(char * pDesc, int * const pTag );
I use it as follows. I have created the object of the class provided by the library that implements the above function.
int tag =0;
g_pCallback->DynamicTag("MyLogger", &tag);
I am getting following warning:
warning: deprecated conversion from string constant to 'char*'
What is the best way of getting rid of above warning? I don't want to allocate memory dynamically.
Info: I am using Vxworks6.8 compiler