[previous] 1296 [next] An integer constant of 'essentially signed' type is being converted to enum type on assignment.
Arithmetic type - Assignment

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

For example:


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

enum E {ONE, TWO};

void foo (enum E b);

enum E f1296 (void)
{
  enum E ena = 0;           /* 1296 */

  foo (1L);                 /* 1296 */

  ena = 0LL;                /* 1296 */

  return 1;                 /* 1296 */
}

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