[previous] 0360 [next] An expression of pointer type is being converted to type _Bool on assignment.
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 */
}

See also:

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