'type' : incompatible types - from 'type1' to 'type2'
An attempt was made to subtract two pointers of different types.
This warning can be avoided by providing the appropriate type cast.