From ff2ac78130e283ecacf485b5ba1b7674281dc38b Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 24 Mar 2023 11:16:21 +0300 Subject: Fix 'unused lambda capture' warning --- bpkg/system-package-manager-debian.cxx | 3 +-- bpkg/system-package-manager-fedora.cxx | 8 ++++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/bpkg/system-package-manager-debian.cxx b/bpkg/system-package-manager-debian.cxx index e0b2bce..ca44658 100644 --- a/bpkg/system-package-manager-debian.cxx +++ b/bpkg/system-package-manager-debian.cxx @@ -1025,8 +1025,7 @@ namespace bpkg // Failed that, assume the package to be a binless library and leave the // main member of the package_status object empty. // - auto guess_main = [this, &pn, &trace] (package_status& s, - const string& ver) + auto guess_main = [this, &trace] (package_status& s, const string& ver) { string depends (apt_cache_show (s.dev, ver)); diff --git a/bpkg/system-package-manager-fedora.cxx b/bpkg/system-package-manager-fedora.cxx index 4d12360..873f9c9 100644 --- a/bpkg/system-package-manager-fedora.cxx +++ b/bpkg/system-package-manager-fedora.cxx @@ -1251,10 +1251,10 @@ namespace bpkg // architecture. Failed that, assume the package to be a binless library // and leave the main member of the package_status object empty. // - auto guess_main = [this, &pn, &trace] (package_status& s, - const string& ver, - const string& qarch, - bool installed) + auto guess_main = [this, &trace] (package_status& s, + const string& ver, + const string& qarch, + bool installed) { vector> depends ( dnf_repoquery_requires (s.devel, ver, qarch, installed)); -- cgit v1.1