![]() |
![]() |
0361 | ![]() |
||||
![]() | |||||||
| Pointers | REFERENCE - ISO:C99-6.3.1.2 Boolean type | ||||||
This message is issued whenever an expression of pointer type has been cast to Boolean type. For example:
/*PRQA S 1-9999 ++*/
/*PRQA S 0361 --*/
void foo (_Bool b);
_Bool f0361 (int * a)
{
foo ((_Bool) a); /* 0361 */
foo ((_Bool) (a + 1)); /* 0361 */
return ((_Bool) (&(a [1]))); /* 0361 */
}
See also:
![]() | ||
| QA·C Source Code Analyser 8.1.2
© 2013 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | Contents |