[Bug c/39170] cannot silence -Wconversion warnings for bit-fields

2010-03-05 Thread Zachary_Deretsky at mentor dot com
--- Comment #9 from Zachary_Deretsky at mentor dot com 2010-03-06 00:20 --- I was wrong, the warning is correct and there is a way to fix it. ***1. The easy recipe: For the assignment to bit-fileds use unsigned int bit-field on the left and mask the right side with the appropriate

[Bug c/39170] cannot silence -Wconversion warnings for bit-fields

2010-02-18 Thread Zachary_Deretsky at mentor dot com
--- Comment #8 from Zachary_Deretsky at mentor dot com 2010-02-18 20:50 --- With -Wconversion for the assignment to bitfields gcc 4.4.2 gives a warning, which is impossible to fix. This BUG (I hope everybody agrees it is a BUG) gives us a lot of trouble while porting our code (45