C1824: Indirection to different types

[ERROR]

Description

There are two pointers in the statement pointing to non-equal types.

Example
  void main() {

  
    int *i;

  
    const int *ci;

  
    char *c;

  
    i=ci;   // C: warning, C++ error, C++ -ec warning

  
    i=c;    // C: warning, C++: error

  
  }

  
Tips

Both pointers must point to equal types. If the types only differ in the qualifiers (const, volatile) try to compile with the option -ec.