4.0.3 warning

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

 



Using gcc 4.0.3 I get a warning on the line:

__attribute__((packed))struct key_ {

that the attribute is ignored and that the attribute should be placed after
the keyword "struct".  OK, that's no doubt ANSI-ly correct.

But, I did not get this warning previously on my old system using (I
believe) version 3.3

My question is this:  Did prior versions also ignore the attribute so placed
but without warning or did they actually accept the attribute.  I'm trying
to figure out whether or not I needed to pack the struct which is used in a
lot of different places.  That is, did the prior working programs have the
struct packed or not?


-- 
View this message in context: http://www.nabble.com/4.0.3-warning-tf3079381.html#a8555564
Sent from the gcc - Help mailing list archive at Nabble.com.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux