I have just submitted r158411 which should make this work.

On Tue, Jun 12, 2012 at 2:13 AM, Jeff Walden <[email protected]> wrote:

> On 06/11/2012 01:22 PM, Chandler Carruth wrote:
> > __attribute__((unused)) should work?
>
> That doesn't work.  I tried the trick on SpiderMonkey today in a case
> where we were using a private field to pad a class to a particular size,
> and I got this:
>
> > ../vm/String.h:588:20: warning: 'unused' attribute only applies to
> variables, functions and labels
>
> So __attribute__((unused)) definitely doesn't work on fields right now.
>  It probably should.  Whether that's the right fix for this particular case
> where the warning's not useful, I dunno.
>
> Jeff
> _______________________________________________
> cfe-commits mailing list
> [email protected]
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to