[google] Avoid warning when unused attribute applied to C++ member variables (issue8580044)

2013-04-09 Thread Teresa Johnson
This patch is pending on trunk, but I would like to get this into google branches now as it is causing spurious warnings. Google ref b/8496800. This patch allows the unused attribute to be used without warning on C++ class members, which are of type FIELD_DECL. This is for compatibility with

Re: [google] Avoid warning when unused attribute applied to C++ member variables (issue8580044)

2013-04-09 Thread Xinliang David Li
Ok -- there are legitimate use cases for this. David On Tue, Apr 9, 2013 at 11:01 AM, Teresa Johnson tejohn...@google.com wrote: This patch is pending on trunk, but I would like to get this into google branches now as it is causing spurious warnings. Google ref b/8496800. This patch allows