problem using gcc-3.4.2 @ FC3
Andy Green
andy at warmcat.com
Fri Oct 21 16:55:51 UTC 2005
Gavin Li wrote:
> I have some structures defined as:
>
> typedef struct {
> unsigned char ID __attribute__ ((packed)) ;
> CALIB_ASC asc __attribute__ ((packed)) ;
> } ASC __attribute__ ((packed)) ;
>
> when I compiled the c source file, gcc send warning packed is ignored.
> There is no warning when use gcc -2.95.x
I believe moving the __attribute__ ((packed)) BEFORE the struct name
instead of after will sort it out.
> Another problem the option -fvolatile is not supported in gcc-3.4.2, what is
> the equivalent to do that?
I couldn't find out what this used to do. Maybe whatever it was, it
isnow done automatically.
-Andy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4492 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20051021/85c5e6c4/attachment-0001.bin>
More information about the fedora-list
mailing list