Silence spurious conditional uninitialized warning in gnc-owner-sql.cpp.

This commit is contained in:
John Ralls 2022-03-03 13:21:51 -08:00
parent 93f5e23cf5
commit 8ef8d3807c

View File

@ -182,7 +182,7 @@ GncSqlColumnTableEntryImpl<CT_OWNERREF>::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";