aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2023-03-24 11:16:21 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2023-03-24 12:09:24 +0300
commitff2ac78130e283ecacf485b5ba1b7674281dc38b (patch)
tree0a53b6f2cdeb8eeb9307c73363ca8629ffee1fcd
parentcc664e28b748423c5a51e0092644f3c92cf0859e (diff)
Fix 'unused lambda capture' warning
-rw-r--r--bpkg/system-package-manager-debian.cxx3
-rw-r--r--bpkg/system-package-manager-fedora.cxx8
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<pair<string, string>> depends (
dnf_repoquery_requires (s.devel, ver, qarch, installed));