From 3f4ff19eecab9d974e0dffce67e2dfef1d5cc676 Mon Sep 17 00:00:00 2001 From: Alex Dadukin Date: Sat, 29 Jun 2024 18:40:43 +0100 Subject: [PATCH] Add unreachable assertion to operator(bool) --- include/json.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/json.h b/include/json.h index 53c7eab..92595ff 100644 --- a/include/json.h +++ b/include/json.h @@ -270,6 +270,9 @@ class Json { return _container.value._array->size() > 0; case ValueContainer::kTypeObject: return _container.value._object->size() > 0; + default: + JUNREACHABLE(); + return false; } }