From a0fd9af39450e2a0eb60e46769f6ad4d24364469 Mon Sep 17 00:00:00 2001 From: Richard Cohen Date: Tue, 6 Jun 2023 15:13:26 +0100 Subject: [PATCH] Fix incorrect logging after switch fallthrough oops --- libgnucash/engine/kvp-frame.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/libgnucash/engine/kvp-frame.cpp b/libgnucash/engine/kvp-frame.cpp index 2aa3535d7b..438b360683 100644 --- a/libgnucash/engine/kvp-frame.cpp +++ b/libgnucash/engine/kvp-frame.cpp @@ -271,15 +271,9 @@ gvalue_from_kvp_value (const KvpValue *kval, GValue* val) g_value_init (val, G_TYPE_DATE); g_value_set_static_boxed (val, kval->get_ptr()); break; - case KvpValue::Type::GLIST: - PWARN ("Error! Attempt to transfer KvpGList!"); - [[fallthrough]]; -/* No transfer of KVP frames outside of QofInstance-derived classes! */ - case KvpValue::Type::FRAME: - PWARN ("Error! Attempt to transfer KvpFrame!"); - [[fallthrough]]; default: - PWARN ("Error! Invalid KVP Transfer Request!"); +/* No transfer outside of QofInstance-derived classes! */ + PWARN ("Error! Invalid attempt to transfer Kvp type %d", kval->get_type()); g_slice_free (GValue, val); val = NULL; break;