From: Jérémie Astor Date: Wed, 6 May 2020 13:59:08 +0000 (+0200) Subject: :art: Remove uninitialized warnings X-Git-Tag: nightly~1660 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=0c3c4422c1254f92fd1408f50e54f993984e4845;p=gwion.git :art: Remove uninitialized warnings --- diff --git a/src/emit/emit.c b/src/emit/emit.c index ba7c7739..050cc97b 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -1431,7 +1431,7 @@ ANN static m_bool _emit_stmt_for(const Emitter emit, const Stmt_For stmt, m_uint ANN static m_bool emit_stmt_for(const Emitter emit, const Stmt_For stmt) { emit_push_stack(emit); - m_uint action_index; + m_uint action_index = 0; const m_bool ret = _emit_stmt_for(emit, stmt, &action_index); emit_pop_stack(emit, action_index); return ret; @@ -1472,7 +1472,7 @@ ANN static m_bool _emit_stmt_auto(const Emitter emit, const Stmt_Auto stmt, m_ui ANN static m_bool emit_stmt_auto(const Emitter emit, const Stmt_Auto stmt) { CHECK_BB(emit_exp(emit, stmt->exp)) emit_push_stack(emit); - m_uint end_pc; + m_uint end_pc = 0; const m_bool ret = _emit_stmt_auto(emit, stmt, &end_pc); emit_pop_stack(emit, end_pc); return ret; @@ -1496,7 +1496,7 @@ ANN static m_bool _emit_stmt_loop(const Emitter emit, const Stmt_Loop stmt, m_ui ANN static m_bool emit_stmt_loop(const Emitter emit, const Stmt_Loop stmt) { emit_push_stack(emit); - m_uint index; + m_uint index = 0; const m_bool ret = _emit_stmt_loop(emit, stmt, &index); emit_pop_stack(emit, index); return ret;