Compiler Warning (level 1) C4090

'operation' : different 'modifier' qualifiers

The given operation was performed on a variable that was defined with the specified modifier. As a result, the variable could be modified without being detected by the compiler.

This warning often occurs when a pointer to an item declared as const or volatile is assigned to a pointer that was not declared as pointing to either of these type modifiers.

The expression was compiled without modification.

The following example generates this warning:

const  char *p = "abcde";
int    str( char *s );
str( p );