diff options
author | Chris Dearman <chris.dearman@imgtec.com> | 2014-09-01 19:12:18 -0700 |
---|---|---|
committer | Chris Dearman <chris.dearman@imgtec.com> | 2014-09-01 19:51:12 -0700 |
commit | 8c56241c823cc650b95f60042721b70d43d9024e (patch) | |
tree | 8a1758bf7df74b06facaa5d6048621d540d4af7c /qemu-arm/test_main.c | |
parent | bad2df3e95cd5719099319d71590a79bf6bc4493 (diff) | |
download | micropython-8c56241c823cc650b95f60042721b70d43d9024e.tar.gz micropython-8c56241c823cc650b95f60042721b70d43d9024e.zip |
Declare do_str() function before the implementation
This ensures that GCC does not discard the do_str implementation in
some cases eg when compiling tests with debug enabled:
make RUN_TESTS=1 DEBUG=1
Diffstat (limited to 'qemu-arm/test_main.c')
-rw-r--r-- | qemu-arm/test_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qemu-arm/test_main.c b/qemu-arm/test_main.c index 63f7e3f0c8..818c558b3d 100644 --- a/qemu-arm/test_main.c +++ b/qemu-arm/test_main.c @@ -18,6 +18,7 @@ #include "tinytest.h" #include "tinytest_macros.h" +void do_str(const char *src); inline void do_str(const char *src) { mp_lexer_t *lex = mp_lexer_new_from_str_len(MP_QSTR__lt_stdin_gt_, src, strlen(src), 0); if (lex == NULL) { |