From ecb1efeebaa5597bee4cfdaab7bff4007b73127d Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sun, 28 Jan 2018 11:14:33 +0300 Subject: Suppress GCC's 'maybe uninitialized' warnings --- bpkg/manifest-utility.cxx | 2 +- bpkg/rep-fetch.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bpkg/manifest-utility.cxx b/bpkg/manifest-utility.cxx index 031d51a..d697620 100644 --- a/bpkg/manifest-utility.cxx +++ b/bpkg/manifest-utility.cxx @@ -95,7 +95,7 @@ namespace bpkg // if directory contains the .git/ subdirectory then git, otherwise // bpkg. // - repository_type t; + repository_type t (repository_type::bpkg); if (ot) t = *ot; diff --git a/bpkg/rep-fetch.cxx b/bpkg/rep-fetch.cxx index 93ccbc6..f53919f 100644 --- a/bpkg/rep-fetch.cxx +++ b/bpkg/rep-fetch.cxx @@ -348,7 +348,7 @@ namespace bpkg rep_fetch (o, t, r, root, ""); // No reason (user-added). } - size_t rcount, pcount; + size_t rcount (0), pcount (0); if (verb) { rcount = db.query_value (); -- cgit v1.1