[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;
}


No MISRA C:2012 Rules applicable to message 3141


See also:

QA·C Source Code Analyser 8.1
MISRA C:2012 Compliance Module 1.0
© 2012 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index | MISRA C:2012 Rule Index Contents