Warn about bitfields larger than union
Kevin P. Fleming
kpfleming@digium.com
Mon Oct 31 15:15:00 GMT 2011
On 10/30/2011 01:12 PM, Jon Grant wrote:
> Hello
>
> I've uploaded a simple C program which shows my query:
>
> http://pastebin.com/BQmG0m3g
>
> Is there a way for GCC to warn when union size is exceeded by a bit-field?
The 'union size' is determined from the largest member of the union.
--
Kevin P. Fleming
Digium, Inc. | Director of Software Technologies
Jabber: kfleming@digium.com | SIP: kpfleming@digium.com | Skype: kpfleming
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at www.digium.com & www.asterisk.org
More information about the Gcc-help
mailing list