From: admin Date: Wed, 13 Nov 2024 05:26:48 +0000 (-0500) Subject: Fix broken (on some compilers) switch X-Git-Url: https://git.vouivredigital.com/?a=commitdiff_plain;h=d804043fff5609e15a771783d02ba20a838b4e09;p=vouivre.git Fix broken (on some compilers) switch --- 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);