Fix compilation warnings

This commit is contained in:
Alexandre Paillier
2023-04-04 17:12:58 +02:00
parent 3810cbd852
commit 4cce06ca2c
4 changed files with 8 additions and 8 deletions

View File

@@ -905,7 +905,7 @@ unsigned char io_event(__attribute__((unused)) unsigned char channel) {
SEPROXYHAL_TAG_STATUS_EVENT_FLAG_USB_POWERED)) {
THROW(EXCEPTION_IO_RESET);
}
// no break is intentional
__attribute__((fallthrough));
default:
UX_DEFAULT_EVENT();
break;

View File

@@ -58,11 +58,11 @@ static void buildFirstPage(void) {
}
void ui_display_privacy_public_key(void) {
review_string = "Provide public\nprivacy key";
review_string = (char *) "Provide public\nprivacy key";
buildFirstPage();
}
void ui_display_privacy_shared_secret(void) {
review_string = "Provide public\nsecret key";
review_string = (char *) "Provide public\nsecret key";
buildFirstPage();
}

View File

@@ -105,15 +105,15 @@ void ui_stark_transfer(bool selfTransfer, bool conditional) {
char *subTitle;
if (conditional) {
if (selfTransfer) {
subTitle = "Conditionnal self transfer";
subTitle = (char *) "Conditionnal self transfer";
} else {
subTitle = "Conditionnal transfer";
subTitle = (char *) "Conditionnal transfer";
}
} else {
if (selfTransfer) {
subTitle = "self transfer";
subTitle = (char *) "self transfer";
} else {
subTitle = "Transfer";
subTitle = (char *) "Transfer";
}
}
nbgl_useCaseReviewStart(get_app_icon(false),

View File

@@ -212,7 +212,7 @@ void eth2_plugin_call(int message, void *parameters) {
strlcpy(msg->title, "Validator", msg->titleLength);
strlcpy(msg->msg, context->deposit_address, msg->msgLength);
msg->result = ETH_PLUGIN_RESULT_OK;
}
} break;
default:
break;
}