diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-20 09:29:45 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-20 09:29:45 +0100 |
commit | 9eccaff8b10be26ead4c679ede1a7c3e4a9bbd19 (patch) | |
tree | e0f716f7cf812e6592fa2825765b25640e9e1f5c /editor/inspect.cpp | |
parent | 2cd77b51b81e503e6e8b5c3c1a26b3e47dcb188f (diff) |
fix noisy warning
Diffstat (limited to 'editor/inspect.cpp')
-rw-r--r-- | editor/inspect.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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); |