py,extmod: Some casts and minor refactors to quiet compiler warnings.

This commit is contained in:
Tom Collins
2017-06-30 16:23:29 -07:00
committed by Damien George
parent ed52955c6b
commit 145796f037
9 changed files with 20 additions and 24 deletions

View File

@@ -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) {