diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-07-28 17:25:58 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-28 17:25:58 +0200 |
commit | e5821148c6b469a48f536b4cd18f06fd5be20e1f (patch) | |
tree | 2ea1fe6b3285a4b8450821c070a6c31d67b2a7a7 /src/compiler.c | |
parent | 45ba8188d181c4b9316366f89fc955956c26e502 (diff) |
Fix build issues in release mode
Diffstat (limited to 'src/compiler.c')
-rw-r--r-- | src/compiler.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler.c b/src/compiler.c index f9d9355..eac51ba 100644 --- a/src/compiler.c +++ b/src/compiler.c @@ -294,11 +294,11 @@ static CHECK_RESULT int thread_generate_bytecode(Parser *parser) { } static int thread_callback_generic(void *userdata) { - int result; + int result = -1; CompilerGenericThreadUserData *compiler_userdata = userdata; switch(compiler_userdata->work_type) { case THREAD_WORK_PARSE: { - assert(bool_false && "Thread work type can't be 'parse' for generic work"); + check(bool_false && "Thread work type can't be 'parse' for generic work"); break; } case THREAD_WORK_RESOLVE_AST: |