![]() |
![]() |
0360 | ![]() |
||||
![]() | |||||||
| Pointers | REFERENCE - ISO:C99-6.5.16.1 Simple assignment | ||||||
This message is issued whenever an expression of pointer type undergoes an assigning conversion to Boolean type. For example:
/*PRQA S 1-9999 ++*/
/*PRQA S 0360 --*/
void foo (_Bool b);
_Bool f0360 (int * a)
{
_Bool boa = a; /* 0360 */
foo (a + 1); /* 0360 */
boa = &(a [1]); /* 0360 */
return a; /* 0360 */
}
MISRA-C:2004 Rules applicable to message 0360:
| Rule 11.3 (Advisory) | A cast should not be performed between a pointer type and an integral type. |
See also:
![]() | ||
| QA·C Source Code Analyser 8.1
MISRA-C:2004 Compliance Module 3.2 © 2012 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | MISRA-C:2004 Rule Index | Contents |