[cfe-commits] r158317 - in /cfe/trunk: include/clang/Basic/DiagnosticGroups.td test/FixIt/fixit.cpp
Daniel Jasper
djasper at google.com
Wed Jun 13 11:33:59 PDT 2012
I have just submitted r158411 which should make this work.
On Tue, Jun 12, 2012 at 2:13 AM, Jeff Walden <jwalden+clang at mit.edu> 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
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120613/ee4379f0/attachment.html>
More information about the cfe-commits
mailing list