From e928568339f5bbefe00d7d623465ed09f31bff44 Mon Sep 17 00:00:00 2001 From: Martin Milata Date: Mon, 5 Jun 2023 22:47:18 +0200 Subject: [PATCH] build: emulator darwin fixes [no changelog] --- core/embed/extmod/modtrezorutils/modtrezorutils-meminfo.h | 1 + core/embed/unix/common.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/embed/extmod/modtrezorutils/modtrezorutils-meminfo.h b/core/embed/extmod/modtrezorutils/modtrezorutils-meminfo.h index 54ff97ac7a..6c825343fd 100644 --- a/core/embed/extmod/modtrezorutils/modtrezorutils-meminfo.h +++ b/core/embed/extmod/modtrezorutils/modtrezorutils-meminfo.h @@ -343,6 +343,7 @@ void dump_closure(FILE *out, const mp_obj_closure_t *closure) { size += find_allocated_size(closure->closed[i]); assert(mp_obj_is_type(closure->closed[i], &mp_type_cell)); } + (void)size; print_type(out, "closure", NULL, closure, false); fprintf(out, ",\n\"function\": \"%p\"", closure->fun); diff --git a/core/embed/unix/common.c b/core/embed/unix/common.c index 0ce4fbd2d1..64dbde1792 100644 --- a/core/embed/unix/common.c +++ b/core/embed/unix/common.c @@ -31,7 +31,7 @@ #endif #include "memzero.h" -extern void main_clean_exit(); +extern void main_clean_exit(int); extern float display_gamma(float); void __attribute__((noreturn)) trezor_shutdown(void) {