![]() |
|
MISRA C:2012 Rule-16.6: (Required) |
|
||||
![]() | |||||||
Example Code:
#include "misra.h"
#include "m3cmex.h"
extern int16_t rule_1606( void )
{
int16_t x;
switch ( s16a )
{
default:
x = s16a;
break;
} /* 3315 */
x = x + s16b;
return x;
}
QAC messages that encompass this guideline:
| 3315 | This 'switch' statement contains only a single path - it is redundant. |
|
||
(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 |