Warning display bug

24 Aug 2010

In the example code I constructed for this post: http://mbed.org/forum/mbed/topic/1012/

The warning isn't actually displayed in the compiler correctly.

This is the code:

struct Bitfield
{
    unsigned char bit1:1;
};

Bitfield Test()
{
    Bitfield bits; // "<bits.0> may be used before being set"
    
    bits.bit1 = 1;

    return bits;
}

What is displayed in the compiler output window is:

may be used before being set

it was only once I copied the output to paste it in for the example, that I could see the <bits.0> section. I guess that it's simply not escaping the < & > before putting it in the HTML