Hmm… I thought this was a pretty clever one. Again, that didn’t show up in my older GCC :/
Any thoughts on how I can silence this AND the other warning? From: Nico Weber [mailto:tha...@chromium.org] Sent: Friday, August 3, 2018 6:16 AM To: Keane, Erich <erich.ke...@intel.com> Cc: cfe-commits <cfe-commits@lists.llvm.org> Subject: Re: r338884 - [NFC] Silence unused variable warning in Attr.td/AttrParsedAttrImpl.inc This causes a warning: gen/clang/include/clang/Sema/AttrParsedAttrImpl.inc:1050:12: warning: expression result unused [-Wunused-value] return S, false; ^ On Fri, Aug 3, 2018 at 9:01 AM Erich Keane via cfe-commits <cfe-commits@lists.llvm.org<mailto:cfe-commits@lists.llvm.org>> wrote: Author: erichkeane Date: Fri Aug 3 06:01:32 2018 New Revision: 338884 URL: http://llvm.org/viewvc/llvm-project?rev=338884&view=rev Log: [NFC] Silence unused variable warning in Attr.td/AttrParsedAttrImpl.inc Modified: cfe/trunk/include/clang/Basic/Attr.td Modified: cfe/trunk/include/clang/Basic/Attr.td URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/Attr.td?rev=338884&r1=338883&r2=338884&view=diff ============================================================================== --- cfe/trunk/include/clang/Basic/Attr.td (original) +++ cfe/trunk/include/clang/Basic/Attr.td Fri Aug 3 06:01:32 2018 @@ -145,7 +145,7 @@ def HasFunctionProto : SubsetSubject<Dec // function. Accepted as a function type attribute on the type of such a // member function. // FIXME: This does not actually ever match currently. -def ImplicitObjectParameter : SubsetSubject<Function, [{false}], +def ImplicitObjectParameter : SubsetSubject<Function, [{S, false}], "implicit object parameters">; // A single argument to an attribute _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org<mailto:cfe-commits@lists.llvm.org> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits