From 9eccaff8b10be26ead4c679ede1a7c3e4a9bbd19 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 20 Mar 2024 09:29:45 +0100 Subject: fix noisy warning --- editor/inspect.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'editor') diff --git a/editor/inspect.cpp b/editor/inspect.cpp index d52ee5e2..64096ed9 100644 --- a/editor/inspect.cpp +++ b/editor/inspect.cpp @@ -81,6 +81,7 @@ bool do_inspect_field(void* datum, const erased_accessor& accessor, field_repr r case hidden: return false; case readonly: should_disable = true; break; case enabled: should_disable = false; break; + default: fm_assert(false); } should_disable = should_disable || !accessor.can_write(); [[maybe_unused]] auto disabler = begin_disabled(should_disable); -- cgit v1.2.3