![]() |
![]() |
0489 | ![]() |
||||
![]() | |||||||
| Pointers | REFERENCE - ISO:C90-6.3.6 Additive Operators - Constraints | ||||||
An integer value of 1 is being added or subtracted from a pointer value. For example:
/*PRQA S 510,2017,3120,3199,3203,3408,3447 ++*/
extern int *px;
extern int *qx;
extern void foo(void)
{
long s;
px = px + 2; /* Message 0488 */
s = qx - px; /* Message 0488 */
px = px + 1; /* Message 0489 */
++px; /* Message 0489 */
qx--; /* Message 0489 */
}
No MISRA C:2012 Rules applicable to message 0489
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 |