다음을 통해 공유


PREfast Warning 319 (Windows CE 5.0)

Send Feedback

319 - Dead code.
Additional Information: Use of the comma-operator in a tested expression causes the left argument to be ignored when it has no side-effects.

This message indicates that PREfast has detected an ignored subexpression in test context because of the comma-operator (,).

The result of the comma-operator is the last expression evaluated and arguments are evaluated left-to-right.

The expression has no influence on the tested expression. If the left expression to comma-operator has no side effects, the compiler can omit code generation for the expression.

Example

Defective Source

for (int i = 0; x[i] != NULL, x[i] < 42; i++) {;}

Corrected Source

for (int i = 0; (x[i] != NULL) && (x[i] < 42); i++) {;}

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.