suppress 732 (loss of sign) when assigning unsigned bit fied values to an unsigned int
In forum thread 4420 http://www.gimpel.com/Discussion.cfm?ThreadID=4420#1, a struct with an unsigned bit field value is assigned to another variable of the same type.
It was said that this message 732 will be suppressed in 9.00L for such cases.
I suggest to suppress the info in ALL cases where an unsigned bit field is assigned to ANY unsigned variable.
Using the same code:
typedef struct
{
unsigned int data : 16;
} struct_t;
struct_t foo = {0};
unsigned int test = foo.data;
1
vote
Anonymous
shared this idea
This was addressed in 9.00L (including your example).