[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:2012 Rules applicable to message 3492


See also:

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