comparison lwasm/insn_bitbit.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 8764142b3192
comparison
equal deleted inserted replaced
1:96c4dc89016e 2:7317fbe024af
17 You should have received a copy of the GNU General Public License along with 17 You should have received a copy of the GNU General Public License along with
18 this program. If not, see <http://www.gnu.org/licenses/>. 18 this program. If not, see <http://www.gnu.org/licenses/>.
19 */ 19 */
20 20
21 #include <stdlib.h> 21 #include <stdlib.h>
22 #include <ctype.h>
22 23
23 #include <lw_expr.h> 24 #include <lw_expr.h>
24 25
25 #include "lwasm.h" 26 #include "lwasm.h"
26 #include "instab.h" 27 #include "instab.h"
28 // these instructions cannot tolerate external references 29 // these instructions cannot tolerate external references
29 PARSEFUNC(insn_parse_bitbit) 30 PARSEFUNC(insn_parse_bitbit)
30 { 31 {
31 int r; 32 int r;
32 lw_expr_t e; 33 lw_expr_t e;
33 int v1; 34 // int v1;
34 int tv; 35 // int tv;
35 36
36 r = toupper(*(*p)++); 37 r = toupper(*(*p)++);
37 if (r == 'A') 38 if (r == 'A')
38 r = 1; 39 r = 1;
39 else if (r == 'B') 40 else if (r == 'B')