![]() |
![]() |
3316 | ![]() |
||||
![]() | |||||||
| Miscellaneous | |||||||
This expression is testing to see if an expression of unsigned type is less than zero. The result is always 'false'. Message 3316 is now considered obsolete. It has been superseded by message 2996 which has a more comprehensive specification. For example:
/*PRQA S 1-9999 ++*/
/*PRQA S 3316, 3324, 3328, 2890, 2990-2999 --*/
extern void foo ( unsigned int c )
{
if ( c < 0 ) { } /* Message 3316 + 2996 + 2992 */
if ( c < -5 ) { } /* Message 3328 + 2890 */
if ( c >= 0 ) { } /* Message 3324 + 2995 + 2991 */
}
No MISRA-C:2004 Rules applicable to message 3316
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 |