From 4d0a5af4750db921c43cc724bfb5397b67bf7f69 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Tue, 7 May 2013 19:59:06 +0200 Subject: [PATCH] removing this dead code_init call --- gmqcc.h | 1 + ir.c | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/gmqcc.h b/gmqcc.h index 033a2d0..fc93d92 100644 --- a/gmqcc.h +++ b/gmqcc.h @@ -734,6 +734,7 @@ typedef struct { * code_pop_statement -- keeps statements and linenumbers together */ bool code_write (code_t *, const char *filename, const char *lno); +GMQCC_WARN code_t *code_init (void); void code_cleanup (code_t *); uint32_t code_genstring (code_t *, const char *string); diff --git a/ir.c b/ir.c index 00d0875..b67a37c 100644 --- a/ir.c +++ b/ir.c @@ -3570,8 +3570,6 @@ bool ir_builder_generate(code_t *code, ir_builder *self, const char *filename) size_t i; char *lnofile = NULL; - code_init(); - for (i = 0; i < vec_size(self->fields); ++i) { ir_builder_prepare_field(code, self->fields[i]); -- 2.39.2