[previous] 4425 [next] An expression of 'essentially enum' type (%1s) is being converted to floating type, '%2s' on assignment.
Arithmetic type - Assignment

This message is issued whenever an expression of essentially enum type undergoes an assigning conversion to a floating type.

For example:


/*PRQA S 1-9999 ++*/
/*PRQA S 4425 --*/

enum E {ONE, TWO};

void foo (float b);

float f4425 (enum E a)
{
  float fta = a;            /* 4425 */

  foo (ONE);                /* 4425 */

  fta = (TWO);              /* 4425 */

  return a;                 /* 4425 */
}

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