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

modlwip-pbuf-chain
Paul Sokolovsky 2016-06-18 00:36:13 +03:00
parent c9598604c6
commit 7c8d76fad3
1 changed files with 7 additions and 0 deletions

View File

@ -86,6 +86,12 @@ void mp_unix_mark_exec(void) {
}
#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) {
mp_uint_t 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)ptr;
// TODO
}
#endif