bug-gnu-libiconv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gnu-libiconv] "cp1255.h", line 99: warning: nonportable bit-fie


From: Bruno Haible
Subject: Re: [bug-gnu-libiconv] "cp1255.h", line 99: warning: nonportable bit-field type
Date: Sun, 03 Jun 2012 20:54:43 +0200
User-agent: KMail/4.7.4 (Linux/3.1.10-1.9-desktop; KDE/4.7.4; x86_64; ; )

Hi,

Dennis Clarke wrote:
> "cp1255.h", line 99: warning: nonportable bit-field type
> "vietcomb.h", line 261: warning: nonportable bit-field type

Thanks for forwarding these warnings. They arise because I'm using
'signed int' or 'unsigned int' as a base type for a bit field. This
was not allowed in C90 (ANSI C), but is allowed in ISO C 99 (see paragraph
6.7.2.1.(4)). The effect of the warning is that the 'signed' / 'unsigned'
attribute gets stripped, which - for unsigned - reduces the available
effective width by 1 bit. I have verified that it is no problem in this
case.

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]