diff options
author | Tom Collins <tom.collins@digi.com> | 2017-06-30 16:23:29 -0700 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-07-07 11:32:22 +1000 |
commit | 145796f037715e180b441b38c1ec1ba45ff77797 (patch) | |
tree | c709871f107f103dfdccd7c6975cd4f07a006477 /py/builtinimport.c | |
parent | ed52955c6bb05d2a08c009ed24ab3214c88c6fb1 (diff) | |
download | micropython-145796f037715e180b441b38c1ec1ba45ff77797.tar.gz micropython-145796f037715e180b441b38c1ec1ba45ff77797.zip |
py,extmod: Some casts and minor refactors to quiet compiler warnings.
Diffstat (limited to 'py/builtinimport.c')
-rw-r--r-- | py/builtinimport.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/py/builtinimport.c b/py/builtinimport.c index 7746e26a4b..7a8474cac3 100644 --- a/py/builtinimport.c +++ b/py/builtinimport.c @@ -227,10 +227,11 @@ STATIC void do_load(mp_obj_t module_obj, vstr_t *file) { do_load_from_lexer(module_obj, lex); return; } - #endif + #else // If we get here then the file was not frozen and we can't compile scripts. mp_raise_msg(&mp_type_ImportError, "script compilation not supported"); + #endif } STATIC void chop_component(const char *start, const char **end) { |