From 23cc1bbb6e1cbbf4af24ac8187630f26372a4b16 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 2 Nov 2018 21:11:12 +0300 Subject: Fix crash when compiled with GCC 4.9 --- bpkg/rep-remove.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bpkg/rep-remove.cxx b/bpkg/rep-remove.cxx index 5a7f8da..657eee2 100644 --- a/bpkg/rep-remove.cxx +++ b/bpkg/rep-remove.cxx @@ -195,13 +195,13 @@ namespace bpkg using query = query; - for (shared_ptr r: + for (shared_ptr rp: pointer_result ( db.query ( query::name != "" && query::location.type == to_string (r->location.type ())))) { - if (repository_state (r->location) == d) + if (repository_state (rp->location) == d) { rm = false; break; -- cgit v1.1