From 3f4a0f36044919db111ad9f7630146271a26c423 Mon Sep 17 00:00:00 2001 From: Francois Beutin Date: Wed, 8 Jun 2022 17:40:51 +0200 Subject: [PATCH] Fix unhandled case warning --- src/handle_query_contract_ui.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/handle_query_contract_ui.c b/src/handle_query_contract_ui.c index 67d02fa..83b1532 100644 --- a/src/handle_query_contract_ui.c +++ b/src/handle_query_contract_ui.c @@ -124,6 +124,9 @@ static screens_t get_screen(ethQueryContractUI_t *msg, return SEND_SCREEN; } else if (token_received_found) { return WARN_SCREEN; + } else { + // Unreachable + break; } case 1: if (both_tokens_found) { @@ -134,6 +137,9 @@ static screens_t get_screen(ethQueryContractUI_t *msg, return WARN_SCREEN; } else if (token_received_found) { return SEND_SCREEN; + } else { + // Unreachable + break; } case 2: if (both_tokens_found) {