![]() |
![]() |
3139 | ![]() |
||||
![]() | |||||||
| Readability | |||||||
A null statement has been encountered. Message 3139 is generated whenever a null statement is encountered unless:
/*PRQA S 2212,2213,2214,3109,3138,3140,3141,3412,3227,3408,3431 ++*/
#define NOTHING
#define MACRO1 {}
#define MACRO2 ;
extern void foo(int n)
{
int i;
/***************************
Message 3139 will not be
generated on the null statements
in the following code
***************************/
if (n == 1)
;
NOTHING;
NOTHING; /* ... */
MACRO1;
MACRO2
MACRO2;
/***************************
Message 3139 will be generated
on all null statements in the
following section
***************************/
if (n == 1);
for (i = 0; i < n; ++i);
{};
;;
/* ... */ ;; /* ... */
; /* ... */
/* ... */ ;
}
See also:
![]() | ||
| QA·C Source Code Analyser 8.1.2
© 2013 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | Contents |