[previous] 3492 [next] Using conditional operator outside a macro.
Arithmetic type - Operations

This message is issued whenever the conditional operator appears in code not subject to macro replacement. Use of the conditional operator is not recommended in some programming standards.

For example:


/*PRQA S 1-9999 ++*/
/*PRQA S 3492 --*/

int f3492 (int a)
{
  return ((a < 0) ? 0 : a);  /* 3492 */
}

See also:

QA·C Source Code Analyser 8.1.2
© 2013 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index Contents