r300145 - ExternalASTMerger.cpp: Silence another warning. [-Wunused-lambda-capture]

David Blaikie via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 17 10:20:32 PDT 2017


I'll change this to [&] capture - any lambda that doesn't escape it's scope
should generally use [&] & that'll avoid the need for explicitly discarding
conditionally unused captures, etc.

On Wed, Apr 12, 2017 at 5:45 PM NAKAMURA Takumi via cfe-commits <
cfe-commits at lists.llvm.org> wrote:

> Author: chapuni
> Date: Wed Apr 12 19:17:28 2017
> New Revision: 300145
>
> URL: http://llvm.org/viewvc/llvm-project?rev=300145&view=rev
> Log:
> ExternalASTMerger.cpp: Silence another warning. [-Wunused-lambda-capture]
>
> Modified:
>     cfe/trunk/lib/AST/ExternalASTMerger.cpp
>
> Modified: cfe/trunk/lib/AST/ExternalASTMerger.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ExternalASTMerger.cpp?rev=300145&r1=300144&r2=300145&view=diff
>
> ==============================================================================
> --- cfe/trunk/lib/AST/ExternalASTMerger.cpp (original)
> +++ cfe/trunk/lib/AST/ExternalASTMerger.cpp Wed Apr 12 19:17:28 2017
> @@ -178,6 +178,7 @@ void ExternalASTMerger::FindExternalLexi
>                  IP.Forward->Import(const_cast<Decl *>(SourceDecl));
>              assert(ImportedDecl->getDeclContext() == DC);
>              (void)ImportedDecl;
> +            (void)DC;
>            }
>          }
>        });
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170417/c3e194f2/attachment.html>


More information about the cfe-commits mailing list