This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Warn about bitfields larger than union
- From: "Kevin P. Fleming" <kpfleming at digium dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 31 Oct 2011 10:15:40 -0500
- Subject: Re: Warn about bitfields larger than union
- References: <4EAD9389.9070604@jguk.org>
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