[previous] 3141 [next] Null statement does not occur on a line by itself.
Readability

A null statement has been found on a line which also contains other code or comment.

For example:


/*PRQA S 2201,3109,3138,3139,3408,3447 ++*/
#define BLANK

extern int n;

extern void foo( void )
{
/*******************************************************************************/
/* Message 3140 is generated when a null statement exists in a line on its own */
/*******************************************************************************/

   ;

/*******************************************************************************/
/* Message 3141 is generated when a null statement is not in a line on its own */
/*******************************************************************************/

   ;      /* ... */
          /* ... */  ;
   ;n++;
    BLANK;
}

See also:

QA·C Source Code Analyser 8.1.2
© 2013 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index Contents