Mercurial > hg > index.cgi
comparison lwasm/insn_rel.c @ 2:7317fbe024af
Clean up insane number of compiler warnings under -Wall
author | lost@l-w.ca |
---|---|
date | Thu, 20 Jan 2011 22:39:46 -0700 |
parents | 2c24602be78f |
children | 651b85a98c1b |
comparison
equal
deleted
inserted
replaced
1:96c4dc89016e | 2:7317fbe024af |
---|---|
29 #include "lwasm.h" | 29 #include "lwasm.h" |
30 #include "instab.h" | 30 #include "instab.h" |
31 | 31 |
32 PARSEFUNC(insn_parse_rel8) | 32 PARSEFUNC(insn_parse_rel8) |
33 { | 33 { |
34 int v; | 34 // int v; |
35 lw_expr_t t, e1, e2; | 35 lw_expr_t t, e1, e2; |
36 int r; | 36 // int r; |
37 | 37 |
38 // sometimes there is a "#", ignore if there | 38 // sometimes there is a "#", ignore if there |
39 if (**p == '#') | 39 if (**p == '#') |
40 (*p)++; | 40 (*p)++; |
41 | 41 |
78 lwasm_emit(l, offs); | 78 lwasm_emit(l, offs); |
79 } | 79 } |
80 | 80 |
81 PARSEFUNC(insn_parse_rel16) | 81 PARSEFUNC(insn_parse_rel16) |
82 { | 82 { |
83 int v; | 83 // int v; |
84 lw_expr_t t, e1, e2; | 84 lw_expr_t t, e1, e2; |
85 int r; | 85 // int r; |
86 | 86 |
87 // sometimes there is a "#", ignore if there | 87 // sometimes there is a "#", ignore if there |
88 if (**p == '#') | 88 if (**p == '#') |
89 (*p)++; | 89 (*p)++; |
90 | 90 |
105 } | 105 } |
106 | 106 |
107 EMITFUNC(insn_emit_rel16) | 107 EMITFUNC(insn_emit_rel16) |
108 { | 108 { |
109 lw_expr_t e; | 109 lw_expr_t e; |
110 int offs; | 110 // int offs; |
111 | 111 |
112 e = lwasm_fetch_expr(l, 0); | 112 e = lwasm_fetch_expr(l, 0); |
113 | 113 |
114 lwasm_emitop(l, instab[l -> insn].ops[0]); | 114 lwasm_emitop(l, instab[l -> insn].ops[0]); |
115 lwasm_emitexpr(l, e, 2); | 115 lwasm_emitexpr(l, e, 2); |