From 8b7a57669176b2dc0f205a9426c5a6e0edcd4a5e Mon Sep 17 00:00:00 2001 From: c vw Date: Tue, 23 Nov 2021 16:39:48 +0100 Subject: [PATCH] Added default clauses to switch statements (just to make compiler happy). --- actions.c | 3 +++ midi3.c | 3 +++ midi_menu.c | 3 +++ 3 files changed, 9 insertions(+) diff --git a/actions.c b/actions.c index 97afca5..803de98 100644 --- a/actions.c +++ b/actions.c @@ -962,6 +962,9 @@ int process_action(void *data) { if(rit_increment<1) rit_increment=100; if(rit_increment>100) rit_increment=1; break; + default: + // ignore other types + break; } g_idle_add(ext_vfo_update,NULL); break; diff --git a/midi3.c b/midi3.c index b2e4ca4..50c0975 100644 --- a/midi3.c +++ b/midi3.c @@ -79,5 +79,8 @@ void DoTheMidi(int action, enum ACTIONtype type, int val) { a->val=val; g_idle_add(process_action,a); break; + default: + // other types cannot happen for MIDI + break; } } diff --git a/midi_menu.c b/midi_menu.c index 3b7e781..011f0e2 100644 --- a/midi_menu.c +++ b/midi_menu.c @@ -514,6 +514,9 @@ static void add_store(int key,struct desc *cmd) { case MIDI_WHEEL: strcpy(str_type,"WHEEL"); break; + default: + // other types cannot occur for MIDI + break; } strcpy(str_action,ActionTable[cmd->action].str); gtk_list_store_prepend(store,&iter); -- 2.45.2