4.0.3 warning

deanz1 deanz1@comcast.net
Wed Jan 24 06:15:00 GMT 2007


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.



More information about the Gcc-help mailing list