共用方式為


編譯器警告 (層級 1) C4552

'operator' : 運算符沒有作用;具有副作用的 expected 運算子

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

若要覆寫這個警告,請將表達式放在括弧中。

下列範例會產生 C4552:

// C4552.cpp
// compile with: /W1
int main() {
   int i, j;
   i + j;   // C4552
   // try the following line instead
   // (i + j);
}