From 80552f894ed044468561d3009f6afb6feec0a839 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Sat, 31 Aug 2019 22:44:23 +0200 Subject: [PATCH] :shirt: Compiler warnings --- src/emit/emit.c | 9 --------- src/parse/scan2.c | 1 - 2 files changed, 10 deletions(-) diff --git a/src/emit/emit.c b/src/emit/emit.c index 2ccbb32c..7732c857 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -398,15 +398,6 @@ ANN static m_bool prim_array(const Emitter emit, const Exp_Primary * primary) { return GW_OK; } -//! emit only one index at the time -ANN static inline m_bool emit_index(const Emitter emit, const Exp e) { - const Exp next = e->next; - e->next = NULL; - const m_bool ret = emit_exp(emit, e, 0); - e->next = next; - return ret; -} - ANN static void array_loop(const Emitter emit, const m_uint depth) { regpop(emit, depth * SZ_INT); emit_add_instr(emit, GWOP_EXCEPT); diff --git a/src/parse/scan2.c b/src/parse/scan2.c index a7cad391..37bc6ff5 100644 --- a/src/parse/scan2.c +++ b/src/parse/scan2.c @@ -20,7 +20,6 @@ ANN static m_bool scan2_stmt_list(const Env, Stmt_List); ANN m_bool scan2_exp_decl(const Env env, const Exp_Decl* decl) { const m_bool global = GET_FLAG(decl->td, global); const m_uint scope = !global ? env->scope->depth : env_push_global(env); - const Type type = decl->type; { const Type t = get_type(decl->type); if(GET_FLAG(t, template) && !GET_FLAG(t, scan2)) -- 2.43.0