Skip to content
Snippets Groups Projects
Commit 7c8d76fa authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

unix/alloc: Make coverage build and its overzealous warnings happy.

parent c9598604
No related branches found
No related tags found
No related merge requests found
...@@ -86,6 +86,12 @@ void mp_unix_mark_exec(void) { ...@@ -86,6 +86,12 @@ void mp_unix_mark_exec(void) {
} }
#if MICROPY_FORCE_PLAT_ALLOC_EXEC #if MICROPY_FORCE_PLAT_ALLOC_EXEC
// Provide implementation of libffi ffi_closure_* functions in terms
// of the functions above. On a normal Linux system, this save a lot
// of code size.
void *ffi_closure_alloc(size_t size, void **code);
void ffi_closure_free(void *ptr);
void *ffi_closure_alloc(size_t size, void **code) { void *ffi_closure_alloc(size_t size, void **code) {
mp_uint_t dummy; mp_uint_t dummy;
mp_unix_alloc_exec(size, code, &dummy); mp_unix_alloc_exec(size, code, &dummy);
...@@ -93,6 +99,7 @@ void *ffi_closure_alloc(size_t size, void **code) { ...@@ -93,6 +99,7 @@ void *ffi_closure_alloc(size_t size, void **code) {
} }
void ffi_closure_free(void *ptr) { void ffi_closure_free(void *ptr) {
(void)ptr;
// TODO // TODO
} }
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment