Fix compilation warnings
This commit is contained in:
@@ -905,7 +905,7 @@ unsigned char io_event(__attribute__((unused)) unsigned char channel) {
|
|||||||
SEPROXYHAL_TAG_STATUS_EVENT_FLAG_USB_POWERED)) {
|
SEPROXYHAL_TAG_STATUS_EVENT_FLAG_USB_POWERED)) {
|
||||||
THROW(EXCEPTION_IO_RESET);
|
THROW(EXCEPTION_IO_RESET);
|
||||||
}
|
}
|
||||||
// no break is intentional
|
__attribute__((fallthrough));
|
||||||
default:
|
default:
|
||||||
UX_DEFAULT_EVENT();
|
UX_DEFAULT_EVENT();
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -58,11 +58,11 @@ static void buildFirstPage(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ui_display_privacy_public_key(void) {
|
void ui_display_privacy_public_key(void) {
|
||||||
review_string = "Provide public\nprivacy key";
|
review_string = (char *) "Provide public\nprivacy key";
|
||||||
buildFirstPage();
|
buildFirstPage();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ui_display_privacy_shared_secret(void) {
|
void ui_display_privacy_shared_secret(void) {
|
||||||
review_string = "Provide public\nsecret key";
|
review_string = (char *) "Provide public\nsecret key";
|
||||||
buildFirstPage();
|
buildFirstPage();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -105,15 +105,15 @@ void ui_stark_transfer(bool selfTransfer, bool conditional) {
|
|||||||
char *subTitle;
|
char *subTitle;
|
||||||
if (conditional) {
|
if (conditional) {
|
||||||
if (selfTransfer) {
|
if (selfTransfer) {
|
||||||
subTitle = "Conditionnal self transfer";
|
subTitle = (char *) "Conditionnal self transfer";
|
||||||
} else {
|
} else {
|
||||||
subTitle = "Conditionnal transfer";
|
subTitle = (char *) "Conditionnal transfer";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (selfTransfer) {
|
if (selfTransfer) {
|
||||||
subTitle = "self transfer";
|
subTitle = (char *) "self transfer";
|
||||||
} else {
|
} else {
|
||||||
subTitle = "Transfer";
|
subTitle = (char *) "Transfer";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
nbgl_useCaseReviewStart(get_app_icon(false),
|
nbgl_useCaseReviewStart(get_app_icon(false),
|
||||||
|
|||||||
@@ -212,7 +212,7 @@ void eth2_plugin_call(int message, void *parameters) {
|
|||||||
strlcpy(msg->title, "Validator", msg->titleLength);
|
strlcpy(msg->title, "Validator", msg->titleLength);
|
||||||
strlcpy(msg->msg, context->deposit_address, msg->msgLength);
|
strlcpy(msg->msg, context->deposit_address, msg->msgLength);
|
||||||
msg->result = ETH_PLUGIN_RESULT_OK;
|
msg->result = ETH_PLUGIN_RESULT_OK;
|
||||||
}
|
} break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user