共用方式為


編譯器警告 (層級 1) C4553

'operator' : 運算符沒有作用;您打算『運算子』嗎?

如果 expression 語句的運算子沒有副作用做為表達式頂端,則可能是錯誤。

下列範例會產生 C4553:

// C4553.cpp
// compile with: /W1
int func()
{
   return 0;
}

int main()
{
   int i;
   i == func();   // C4553
   // try the following line instead
   // i = func();
}