Warning C258 in Keil C51 V7.02b

After upgrading to 7.02b, I get a C258 Warning when using the typedef in the following example.

If I use 'bit' directly, the Warning is not issued.

Any clues?

Best regards and thanks in advance.

Jose


volatile unsigned char c1, c2, c3;

typedef bit BOOL;

unsigned char func1(BOOL a, unsigned char b)
{
  if (a) return b;
  else return ~b;
}

void main(void)
{
  c1 = func1(0, 9);
  c2 = func1(1, 8);
}

Parents Reply Children
No data
More questions in this forum