Bug 1375386 - Silence a -Wunused-lambda-capture warning r=froydnj

MozReview-Commit-ID: CoIXICb4nwY

--HG--
extra : rebase_source : 47ab8f3f20243abc778402e4aba13969c83c1b8e
This commit is contained in:
Sylvestre Ledru 2017-06-22 08:47:02 +02:00
Родитель 0c1d62e1ab
Коммит 3d4e903323
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -1649,6 +1649,7 @@ RuntimeService::RegisterWorker(WorkerPrivate* aWorkerPrivate)
domainInfo = mDomainMap.LookupForAdd(domain).OrInsert( domainInfo = mDomainMap.LookupForAdd(domain).OrInsert(
[&domain, parent] () { [&domain, parent] () {
NS_ASSERTION(!parent, "Shouldn't have a parent here!"); NS_ASSERTION(!parent, "Shouldn't have a parent here!");
Unused << parent; // silence clang -Wunused-lambda-capture in opt builds
WorkerDomainInfo* wdi = new WorkerDomainInfo(); WorkerDomainInfo* wdi = new WorkerDomainInfo();
wdi->mDomain = domain; wdi->mDomain = domain;
return wdi; return wdi;