Skip to content

Commit 8c56241

Browse files
committed
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
1 parent bad2df3 commit 8c56241

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

qemu-arm/test_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include "tinytest.h"
1919
#include "tinytest_macros.h"
2020

21+
void do_str(const char *src);
2122
inline void do_str(const char *src) {
2223
mp_lexer_t *lex = mp_lexer_new_from_str_len(MP_QSTR__lt_stdin_gt_, src, strlen(src), 0);
2324
if (lex == NULL) {

0 commit comments

Comments
 (0)