diff options
author | Damien George <damien.p.george@gmail.com> | 2015-01-12 22:30:49 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-01-12 22:30:49 +0000 |
commit | cd3420740909b3b6a2140b613b591b7556b417a2 (patch) | |
tree | 767cea7dc4f378781da48d90fe0952c74979ac63 /unix | |
parent | 3dd1c0a88aadb2fef210375709a32b6fdf88d3a7 (diff) | |
download | micropython-cd3420740909b3b6a2140b613b591b7556b417a2.tar.gz micropython-cd3420740909b3b6a2140b613b591b7556b417a2.zip |
py: Can compile with -Wmissing-declarations and -Wmissing-prototypes.
Diffstat (limited to 'unix')
-rw-r--r-- | unix/file.c | 1 | ||||
-rw-r--r-- | unix/gccollect.c | 2 | ||||
-rw-r--r-- | unix/main.c | 1 |
3 files changed, 2 insertions, 2 deletions
diff --git a/unix/file.c b/unix/file.c index b62154baaa..7f1b285a5d 100644 --- a/unix/file.c +++ b/unix/file.c @@ -34,6 +34,7 @@ #include "py/nlr.h" #include "py/runtime.h" #include "py/stream.h" +#include "py/builtin.h" #ifdef _WIN32 #define fsync _commit diff --git a/unix/gccollect.c b/unix/gccollect.c index f8bcbf965d..16bfc3b486 100644 --- a/unix/gccollect.c +++ b/unix/gccollect.c @@ -51,7 +51,7 @@ STATIC void gc_helper_get_regs(regs_t arr) { #ifdef __x86_64__ typedef mp_uint_t regs_t[6]; -void gc_helper_get_regs(regs_t arr) { +STATIC void gc_helper_get_regs(regs_t arr) { register long rbx asm ("rbx"); register long rbp asm ("rbp"); register long r12 asm ("r12"); diff --git a/unix/main.c b/unix/main.c index 3dd71eff8c..d635127783 100644 --- a/unix/main.c +++ b/unix/main.c @@ -482,7 +482,6 @@ int main(int argc, char **argv) { } if (mp_verbose_flag) { - extern mp_obj_t mp_micropython_mem_info(mp_uint_t n_args, const mp_obj_t *args); mp_micropython_mem_info(0, NULL); } |