Skip to content

Commit 3b6dbc8

Browse files
committed
Add default case to FlexbufferToVariant switches in app and database modules
1 parent b9128e1 commit 3b6dbc8

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

app/src/variant_util.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ Variant FlexbufferToVariant(const flexbuffers::Reference& ref) {
251251
LogError("Flexbuffers containing blobs are not supported.");
252252
break;
253253
case flexbuffers::FBT_MAX_TYPE:
254+
default:
254255
LogError("Unknown or unsupported flexbuffer type: %d",
255256
static_cast<int>(ref.GetType()));
256257
break;

database/src/desktop/persistence/flatbuffer_conversions.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ Variant FlexbufferToVariant(const flexbuffers::Reference& ref) {
104104
LogError("Flexbuffers containing blobs are not supported.");
105105
break;
106106
case flexbuffers::FBT_MAX_TYPE:
107+
default:
107108
LogError("Unknown or unsupported flexbuffer type: %d",
108109
static_cast<int>(ref.GetType()));
109110
break;

0 commit comments

Comments
 (0)