unix/alloc: Make coverage build and its overzealous warnings happy.
This commit is contained in:
parent
c9598604c6
commit
7c8d76fad3
@ -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) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ffi_closure_free(void *ptr) {
|
void ffi_closure_free(void *ptr) {
|
||||||
|
(void)ptr;
|
||||||
// TODO
|
// TODO
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user