From 8ef8d3807ce516f3423e00745f4f96d6e31da499 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Thu, 3 Mar 2022 13:21:51 -0800 Subject: [PATCH] Silence spurious conditional uninitialized warning in gnc-owner-sql.cpp. --- libgnucash/backend/sql/gnc-owner-sql.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgnucash/backend/sql/gnc-owner-sql.cpp b/libgnucash/backend/sql/gnc-owner-sql.cpp index c2f2990881..c25e00b261 100644 --- a/libgnucash/backend/sql/gnc-owner-sql.cpp +++ b/libgnucash/backend/sql/gnc-owner-sql.cpp @@ -182,7 +182,7 @@ GncSqlColumnTableEntryImpl::add_to_query(QofIdTypeConst obj_name, auto owner = (*getter) (pObject); QofInstance* inst = nullptr; - GncOwnerType type; + GncOwnerType type = GNC_OWNER_NONE; auto type_hdr = std::string{m_col_name} + "_type"; auto guid_hdr = std::string{m_col_name} + "_guid";