From dc6401042e938eb3d21c48f378203c5224178fc9 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Fri, 16 Jun 2017 14:08:20 +0200 Subject: [PATCH] Bug 1373625 - Silence a -Wunused-lambda-capture warning in nsContainerFrame.cpp r=dholbert MozReview-Commit-ID: 6PaCykerJHw --HG-- extra : rebase_source : 1df6744a57536d79cc2e24df19a85f216105f013 --- layout/generic/nsContainerFrame.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layout/generic/nsContainerFrame.cpp b/layout/generic/nsContainerFrame.cpp index 6a0a97f0a5ed..a5d2b15fa639 100644 --- a/layout/generic/nsContainerFrame.cpp +++ b/layout/generic/nsContainerFrame.cpp @@ -340,10 +340,12 @@ nsContainerFrame::GetChildLists(nsTArray* aLists) const } else if (aProp == OverflowContainersProperty()) { MOZ_ASSERT(IsFrameOfType(nsIFrame::eCanContainOverflowContainers), "found unexpected OverflowContainersProperty"); + Unused << this; // silence clang -Wunused-lambda-capture in opt builds L(aValue)->AppendIfNonempty(aLists, kOverflowContainersList); } else if (aProp == ExcessOverflowContainersProperty()) { MOZ_ASSERT(IsFrameOfType(nsIFrame::eCanContainOverflowContainers), "found unexpected ExcessOverflowContainersProperty"); + Unused << this; // silence clang -Wunused-lambda-capture in opt builds L(aValue)->AppendIfNonempty(aLists, kExcessOverflowContainersList); } else if (aProp == BackdropProperty()) { L(aValue)->AppendIfNonempty(aLists, kBackdropList);