This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
4.0.3 warning
- From: deanz1 <deanz1 at comcast dot net>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 23 Jan 2007 22:15:08 -0800 (PST)
- Subject: 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.