Date: Fri, 22 Nov 1996 13:24:21 +0200 (IST) From: Eli Zaretskii To: "A.Appleyard" Cc: DJGPP AT delorie DOT com Subject: Re: v2 unwanted warnings In-Reply-To: <1085207BB1@fs2.mt.umist.ac.uk> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Fri, 22 Nov 1996, A.Appleyard wrote: > #define nu __attribute__ ((unused)) > class point{public: double x,y;}; > int miaow(point w nu,double z nu){} > and every time I got this error:- > > t$$$.cc:3: parse error before `__attribute__' When using a feature, it helps to first read the docs about how it should be used. You should say like so: int miaow (point nu w, double nu z) {} The attribute should go *before* the name, not after it. Think of the attribute as if it were a modifier, like `volatile'. Note that I didn't have time to test the above, as I never used this attribute, so I might be wrong after all. But it works for me in similar contexts and with different attributes.