[previous] MISRA C:2012  Dir-4.7:  (Required) [next] If a function returns error information, then that error information shall be tested

Amplification:

The list of functions that are deemed to return error information shall be determined by the project.

The error information returned by a function shall be tested in a meaningful manner.

Exception:

If it can be shown, for example by checking arguments, that a function cannot return an error indication then there is no need to perform a check.


No QAC messages cover this rule.



(c) The Motor Industry Research Association, 2012
QA C Source Code Analyser 8.1.2
MISRA C:2012 Compliance Module 1.0
© 2013 Programming Research
www.programmingresearch.com
Personality Groups | Glossary | Message Index | MISRA C:2012 Rule Index Contents