![]() |
![]() |
3138 | ![]() |
||||
![]() | |||||||
| Readability | |||||||
Message 3138 identifies null statements which violate Rule 14.3 in MISRA-C:2004. The message will be generated whenever a null statement is encountered UNLESS:
/*PRQA S 1011,2017,2213,2214,3109,3120,3139,3140,3141,3198,3227,3408 ++*/
#define NOTHING
extern void foo(int n)
{
int i;
/* Message 3138 will be generated
on all the following lines */
;i = 1;
i = 1;;
{};
;/* ... */
/* ... */;
/* ... */ ;
;//
if (n == 1);
if (n == 2) /* ... */ ;
for (i = 0; i < n; ++i);
NOTHING;
/* It will NOT be generated
on the following lines */
;
; /* comment */
}
See also:
![]() | ||
| QA·C Source Code Analyser 8.1.2
© 2013 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | Contents |