]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
removing this dead code_init call
authorWolfgang Bumiller <wry.git@bumiller.com>
Tue, 7 May 2013 17:59:06 +0000 (19:59 +0200)
committerWolfgang Bumiller <wry.git@bumiller.com>
Tue, 7 May 2013 17:59:06 +0000 (19:59 +0200)
gmqcc.h
ir.c

diff --git a/gmqcc.h b/gmqcc.h
index 033a2d027c4347fe2f8cf8b0a02aa5e8b5d4cd46..fc93d92b002857e7476d187679194156891bd460 100644 (file)
--- 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 00d08756e1c11885c1b2831773ba41efe5629ecb..b67a37ce634b2bf9c4782af0768c5576ec1f697e 100644 (file)
--- 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]);