跳转到主内容
Knowledgebase
Home
Renesas Electronics China - Knowledgebase

ERROR: W2525: illegal type combination for 'operator' (type1,type2)

Latest Updated:12/01/2011

Question:

The following warning message is output.

W2525: illegal type combination for 'operator' (type1,type2)

However, I cannot find the cause.

Answer:

This warning is output because the stWk1 address with const specification is treated as a variable that is not const.
You can prevent this warning from being output by erasing the const specification for stWk1 or adding a const specification to ptr1.
Suitable Products