[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 */
}


No MISRA-C:2004 Rules applicable to message 3492


See also:

QA·C Source Code Analyser 8.1
MISRA-C:2004 Compliance Module 3.2
© 2012 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index | MISRA-C:2004 Rule Index Contents