W8084 Suggest parentheses to clarify precedence (C++)

From RAD Studio
Jump to: navigation, search

Go Up to Compiler Errors And Warnings (C++) Index

This warning indicates that several operators used in one expression might cause confusion about the applicable operator precedence rules. The warning helps create code that is more easy to understand and potentially less ambiguous.

For example, compile the following code using the -w command line option:

int j, k, l;
int main()
{
  return j < k & l;  // This causes an error
}
//