From d804043fff5609e15a771783d02ba20a838b4e09 Mon Sep 17 00:00:00 2001 From: admin Date: Wed, 13 Nov 2024 00:26:48 -0500 Subject: [PATCH] Fix broken (on some compilers) switch --- src/ui.c | 5 +++++ src/v.c | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/src/ui.c b/src/ui.c index 5141f00..30a7033 100644 --- a/src/ui.c +++ b/src/ui.c @@ -151,6 +151,7 @@ get_slot_data(struct rule *rule, struct point *slot, GSList *stack) break; default: return NULL; + break; } } @@ -177,6 +178,7 @@ next_thesis_slot_type(enum thesis_kind tk) return slot_type_thesis; break; default: + break; } } @@ -355,6 +357,7 @@ next_slot(struct point *slot, struct rule *rule) case slot_type_rule_name: break; default: + break; } } } @@ -555,6 +558,7 @@ empty_slot_p(struct rule *rule, struct point *slot) case slot_type_unknown: return TRUE; default: + break; } } @@ -756,6 +760,7 @@ draw_judgment(WINDOW *w, int *y, int *x, int *offset, int caret_offset, draw_slot(w, y, x, offset, caret_offset, virtual, NULL, FALSE); break; default: + break; } } diff --git a/src/v.c b/src/v.c index 223887c..cb0256c 100644 --- a/src/v.c +++ b/src/v.c @@ -853,6 +853,7 @@ validate_rule_name(struct state *state) } break; default: + break; } state->input = g_string_erase(state->input, 0, -1); state->rule = @@ -1053,6 +1054,7 @@ handle_workspace_input(struct state *state, wint_t key) case slot_type_unknown: break; default: + break; } } } @@ -1078,6 +1080,7 @@ handle_workspace_input(struct state *state, wint_t key) state->status = 1; break; default: + break; } } else if (state->status == 1) { @@ -1092,6 +1095,7 @@ handle_workspace_input(struct state *state, wint_t key) break; default: state->status = 0; + break; } } } @@ -1220,6 +1224,7 @@ main() handle_derivation_input(&state, key); break; default: + break; } /* draw the current major mode */ @@ -1237,6 +1242,7 @@ main() render_derivation(&state); break; default: + break; } } delwin(state.workspace); -- 2.39.5