This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

4.0.3 warning


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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]