From: Wolfgang Bumiller Date: Tue, 7 May 2013 17:59:06 +0000 (+0200) Subject: removing this dead code_init call X-Git-Tag: v0.3.0~151^2~51 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4d0a5af4750db921c43cc724bfb5397b67bf7f69;p=xonotic%2Fgmqcc.git removing this dead code_init call --- 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]);