J
Jason
I have a function (Inet_ntop) that returns const char * and if I try to
assign that return value to a char * variable, I get the gcc error message:
warning: assignment discards qualifiers from pointer target type
Does anyone know what this warning means? Why do I get it? The program
compiles and appears to work, but I'd like to understand the warning.
Here is basically what the code looks like:
char *str;
str = Inet_ntop(...); //returns const char *
Any help is appreciated. Thanks.
assign that return value to a char * variable, I get the gcc error message:
warning: assignment discards qualifiers from pointer target type
Does anyone know what this warning means? Why do I get it? The program
compiles and appears to work, but I'd like to understand the warning.
Here is basically what the code looks like:
char *str;
str = Inet_ntop(...); //returns const char *
Any help is appreciated. Thanks.